Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: interp3 question?
Date: Mon, 9 Jun 2008 12:14:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 41
Message-ID: <g2j6qa$gd2$1@fred.mathworks.com>
References: <g2i9o9$qsu$1@fred.mathworks.com> <g2ir1d$bh9$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213013642 16802 172.30.248.38 (9 Jun 2008 12:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Jun 2008 12:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1376919
Xref: news.mathworks.com comp.soft-sys.matlab:472807



John, are you sugessting interpolating over each row of F 
in a loop:

for i=1:length (F)
FNEW(i,:)=interp1(D1,F(i,:),D2')
end




"John D'Errico" <woodchips@rochester.rr.com> wrote in 
message <g2ir1d$bh9$1@fred.mathworks.com>...
> "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