<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264951</link>
    <title>MATLAB Central Newsreader - interp3</title>
    <description>Feed for thread: interp3</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 04 Nov 2009 10:31:37 -0500</pubDate>
      <title>interp3</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264951#691987</link>
      <author>Kamran</author>
      <description>&lt;br&gt;
Hi,&lt;br&gt;
having difficulty to use interp3 func.&lt;br&gt;
I have a:&lt;br&gt;
[xs,ys,zs]=meshgird(-180:180,0:90,0:.01:1);&lt;br&gt;
and vectors nx,ny,nz which I convert to sherical coordinates:&lt;br&gt;
[t,p,r]=cart2sph(nx,ny,nz);&lt;br&gt;
and corresponding vector 'v' with values at (t,p,r), and then&lt;br&gt;
&lt;br&gt;
vi=interp3(xs,ys,zs,v,t,p,r);&lt;br&gt;
&lt;br&gt;
and I get the error that 'v' must be a matrix with size equal to my &lt;br&gt;
meshgrid. Well, if I knew the 'v' at every point on my mesh, I wouldn't &lt;br&gt;
have needed to find the values on the mesh itself.&lt;br&gt;
Is there any other function available that would do the job for me ? I &lt;br&gt;
need to test 'cubic' and 'spline' interpolation on my 3D data (huge &lt;br&gt;
dataset).&lt;br&gt;
&lt;br&gt;
thanks,&lt;br&gt;
Kamran</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 11:22:02 -0500</pubDate>
      <title>Re: interp3</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264951#691995</link>
      <author>Branko </author>
      <description>Kamran &amp;lt;kamran@uio.no&amp;gt; wrote in message &amp;lt;hcrl6a$1h06$1@news01.tp.hist.no&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; having difficulty to use interp3 func.&lt;br&gt;
&amp;gt; I have a:&lt;br&gt;
&amp;gt; [xs,ys,zs]=meshgird(-180:180,0:90,0:.01:1);&lt;br&gt;
&amp;gt; and vectors nx,ny,nz which I convert to sherical coordinates:&lt;br&gt;
&amp;gt; [t,p,r]=cart2sph(nx,ny,nz);&lt;br&gt;
&amp;gt; and corresponding vector 'v' with values at (t,p,r), and then&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; vi=interp3(xs,ys,zs,v,t,p,r);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; and I get the error that 'v' must be a matrix with size equal to my &lt;br&gt;
&amp;gt; meshgrid. Well, if I knew the 'v' at every point on my mesh, I wouldn't &lt;br&gt;
&amp;gt; have needed to find the values on the mesh itself.&lt;br&gt;
&amp;gt; Is there any other function available that would do the job for me ? I &lt;br&gt;
&amp;gt; need to test 'cubic' and 'spline' interpolation on my 3D data (huge &lt;br&gt;
&amp;gt; dataset).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thanks,&lt;br&gt;
&amp;gt; Kamran&lt;br&gt;
&lt;br&gt;
Have you looked at griddata.&lt;br&gt;
&lt;br&gt;
Branko</description>
    </item>
  </channel>
</rss>

