Thread Subject: interp3

Subject: interp3

From: Adam

Date: 25 Nov, 2009 18:50:23

Message: 1 of 4

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.

Subject: interp3

From: Bruno Luong

Date: 25 Nov, 2009 19:04:21

Message: 2 of 4

"Adam " <adda8795@student.uu.se> wrote in message <heju9f$5pb$1@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

Subject: interp3

From: dpb

Date: 25 Nov, 2009 19:05:20

Message: 3 of 4

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

doc interp3

--

Subject: interp3

From: Adam

Date: 27 Nov, 2009 16:23:03

Message: 4 of 4

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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com