Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: vectorizing interp2 for use in 3D arrays?
Date: Sun, 5 Aug 2007 09:24:19 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 17
Message-ID: <f94503$565$1@fred.mathworks.com>
References: <f93kfr$ppb$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186305859 5317 172.30.248.35 (5 Aug 2007 09:24:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 5 Aug 2007 09:24:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:422502


"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