validity ka matlab