From: Adam on
Hi,
This is probably a basic question, but I haven't worked that much with matlab yet.

I am outputting data in 3d mesh using matlab using 3 independent parameters.
I have a problem with interpolating the data as I can't get the commando interp3 to work.

If someone could show me a concrete example of using interp3 or a good text on the subject I would be very thankful.
From: Bruno Luong on
"Adam " <adda8795(a)student.uu.se> wrote in message <heju9f$5pb$1(a)fred.mathworks.com>...
> Hi,
> This is probably a basic question, but I haven't worked that much with matlab yet.
>
> I am outputting data in 3d mesh using matlab using 3 independent parameters.
> I have a problem with interpolating the data as I can't get the commando interp3 to work.
>
> If someone could show me a concrete example of using interp3 or a good text on the subject I would be very thankful.

Rather use GRIDDATA3 or TriScatteredInterp for scattered data. INTERP3 is used for tensorial gridded data only.

Bruno
From: dpb on
Adam wrote:
....
> If someone could show me a concrete example of using interp3 ...

doc interp3

--

From: Adam on
I am a bit stuck as I am not sure how to use the griddata3, my experience is limited using matlab.

I've used matlab to create 3d graphs using a vector with 5 fixed values as X, a vector with 7 fixed values as Y. As Z I have 5*7 measured values.

I need to interpolate my graph to "smoothen" the lines in the graph, probably using griddata3 as mentioned.

Could someone show me a practical example of needed matlab code for this I would be very thankful.