From: Rajeev Narayanan on
Hi,

I am getting the following error when I am using csquantile function:
Error using ==> interp1 at 128
LENGTH(X) and SIZE(Y,1) must be the same.
Error in ==> csquantiles at 33
qhat=interp1(phat,xs,p);

I have the following data:

Tm1(:,:,1) =
0.9775
1.2526
Tm1(:,:,2) =
0.1112
-0.4573
Tm1(:,:,3) =
0.4546
-1.1298
Tm1(:,:,4) =
-0.1598
-1.1552
Tm1(:,:,5) =
2.6692
2.2034
Tm1(:,:,6) =
-0.3691
0.0452

I am trying to use csquantile in the following way:

for i=1:2
forj=1:6
x=csquantiles(Tm1(i,j,:), 0.05)
end
end

Is it correct? Somebody help me.

Thanks,
Rajeev