Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: interp3 question?
Date: Mon, 9 Jun 2008 08:53:01 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 25
Message-ID: <g2ir1d$bh9$1@fred.mathworks.com>
References: <g2i9o9$qsu$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213001581 11817 172.30.248.35 (9 Jun 2008 08:53:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Jun 2008 08:53:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:472791



"Hydroman S" <amirgsalem@gmail.com> wrote in message 
<g2i9o9$qsu$1@fred.mathworks.com>...
> I have a set of points; say D1 (3x1), Each of these points 
> is assigned a matrix, F (20 x 3). 
> 
> I also have another set of points, say D2 (4 x 1), how can 
> I interpolate I wish to interpolate F over the set D2.  
> 
> I looked up interp3 and griddatan, but was not able to 
> accomplish my goal, any tips? 
> 

You have three points, in a one dimensional
domain space, that map to three function
values. So you use interp1. It so happens that
you have 20 of these relationships to interpolate,
and conveniently for you, interp1 will do them
all in one call. Try it.

You do not have an n-dimensional problem
that needs a high dimensional interpolation.

Use interp1.

John