Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: interp3 question?
Date: Mon, 9 Jun 2008 04:34:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g2ibrp$at0$1@fred.mathworks.com>
References: <g2i9o9$qsu$1@fred.mathworks.com> <g2ib8j$cf0$1@canopus.cc.umanitoba.ca>
Reply-To: <HIDDEN>
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 1212986041 11168 172.30.248.37 (9 Jun 2008 04:34:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Jun 2008 04:34:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1376919
Xref: news.mathworks.com comp.soft-sys.matlab:472773



the example:

D1=rand(3,1);
F=rand(20,3);
D2=rand(4,1);

and I wish to interpolate F over the set D2. 



I tried:

interp1((meshgrid(D1,ones(1,length(F)))),F,D2), but I get 
the error: ??? Error using ==> interp1
The values of X should be distinct.