Path: news.mathworks.com!not-for-mail
From: "Lorenzo Garlappi" <lorenzo.garlappi@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: vectorizing interp2 for use in 3D arrays?
Date: Sat, 11 Aug 2007 05:47:00 +0000 (UTC)
Organization: University of Texas Austin
Lines: 28
Message-ID: <f9jigk$28n$1@fred.mathworks.com>
References: <f93kfr$ppb$1@fred.mathworks.com> <f94503$565$1@fred.mathworks.com>
Reply-To: "Lorenzo Garlappi" <lorenzo.garlappi@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186811220 2327 172.30.248.37 (11 Aug 2007 05:47:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Aug 2007 05:47:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 87499
Xref: news.mathworks.com comp.soft-sys.matlab:423479


Thanks John,
I was worried about execution time and was under the
impression that interp3 would be slower than interp2 with
loop. I will experiment.

Lorenzo

"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <f94503$565$1@fred.mathworks.com>...
> "Lorenzo Garlappi" <lorenzo.garlappi@gmail.com> wrote in
message 
> <f93kfr$ppb$1@fred.mathworks.com>...
> > I am trying to see if it is possible to avoid a loop in the
> > following problem regarding the use of interp2.
> > 
> > Suppose Z is an N-by-M-by-K 3D-array
> > I want to interpolate each of the K M-by-N 2D-arrays over a
> > finer grid.
> > The only solution I could think of is to use interp2 on a
> > loop over the K dimension as follows: 
> 
> Use of interp3 or interpn is for some reason
> out of the question?
> 
> John
> 
>