Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed3.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!uio.no!hist.no!not-for-mail
From: Kamran <kamran@uio.no>
Newsgroups: comp.soft-sys.matlab
Subject: interp3
Date: Wed, 04 Nov 2009 11:31:37 +0100
Organization: HiST
Lines: 20
Message-ID: <hcrl6a$1h06$1@news01.tp.hist.no>
NNTP-Posting-Host: 193.156.135.121
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news01.tp.hist.no 1257330698 50182 193.156.135.121 (4 Nov 2009 10:31:38 GMT)
X-Complaints-To: news-abuse@hist.no
NNTP-Posting-Date: Wed, 4 Nov 2009 10:31:38 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.14eol) Gecko/20080327 Red Hat/1.0.9-15.el4 SeaMonkey/1.0.9
Xref: news.mathworks.com comp.soft-sys.matlab:582317



Hi,
having difficulty to use interp3 func.
I have a:
[xs,ys,zs]=meshgird(-180:180,0:90,0:.01:1);
and vectors nx,ny,nz which I convert to sherical coordinates:
[t,p,r]=cart2sph(nx,ny,nz);
and corresponding vector 'v' with values at (t,p,r), and then

vi=interp3(xs,ys,zs,v,t,p,r);

and I get the error that 'v' must be a matrix with size equal to my 
meshgrid. Well, if I knew the 'v' at every point on my mesh, I wouldn't 
have needed to find the values on the mesh itself.
Is there any other function available that would do the job for me ? I 
need to test 'cubic' and 'spline' interpolation on my 3D data (huge 
dataset).

thanks,
Kamran