From: Erik Peterson on
Peter,

I think you mis-interpreted the error message here. The error message states that the _lengths_ of X Y and Z must match the _size_ of V. That is what Prashant was trying to show with the notation you did not understand.

To clarify for others reading this post, look closely at the help for interp3:
VI = INTERP3(V,XI,YI,ZI) assumes X=1:N, Y=1:M, Z=1:P
where [M,N,P]=SIZE(V).

Note that the V dimension order is _Y_ X Z.

-Erik

psecaNS(a)mathworks.com (Peter Secakusuma) wrote in message <5ti784$n35$1(a)turing.mathworks.com>...
>
> On using :
>
> interp3(X,Y,Z,V,NewX,Y,Z)
>
> the sizes of X, Y, Z, and V must me the same. That is:
>
> size(X) = size(Y) = size(Z) = size(V)
>
>
>
> Sincerely,
>
> Peter Secakusuma
>
>
> PS. I don't quite understand your notation:
>
> size(V) == [length(X), length(Y), length(Z)]
>
>
>
> In article <Pine.SGI.3.95.970821150542.4651B-100000(a)ariel>,
> ppm(a)ariel.harvard.edu says...
> >
> >
> >Can anyone help me - I'm trying to use the interp3 function in Matlab 5.0
> >on UNIX.
> >
> >On using :
> >
> >interp3(X,Y,Z,V,NewX,Y,Z)
> >
> >I get an error that says:
> >
> >Warning: One or more output arguments not assigned during call to 'xyzvchk'.
> >> In /opt/matlab5/toolbox/matlab/polyfun/interp3.m at line 93
> > In /r/pan/Ca/ctm/ppm/SPACE/matlab/interpol.m at line 28
> >??? Error using ==> interp3
> >The lengths of X,Y and Z must match the size of V.
> >
> >But I have checked that:
> >size(V) == [length(X), length(Y), length(Z)]
> >
> >I am clueless - any help would be appreciated. Thanks,
> >
> >Prashant
> >
>