<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261070</link>
    <title>MATLAB Central Newsreader - quad2d sfit</title>
    <description>Feed for thread: quad2d sfit</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>Thu, 17 Sep 2009 16:06:01 -0400</pubDate>
      <title>quad2d sfit</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261070#680888</link>
      <author>Aaron </author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
I am looking to integrate the area under a surface fit. I searched for a method to do this and found a page on qyad2d &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/index.html?/access/helpdesk/help/toolbox/curvefit/quad2d.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/index.html?/access/helpdesk/help/toolbox/curvefit/quad2d.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
which claimed the function quad2d will &quot;Numerically integrate sfit object&quot;&lt;br&gt;
&lt;br&gt;
However when I try to run it I get the error message &lt;br&gt;
&lt;br&gt;
&quot;First input argument must be a function handle.&quot;&lt;br&gt;
&lt;br&gt;
Can anyone explain to me why this is happening, do I need a more recent version of Matlab?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
A</description>
    </item>
    <item>
      <pubDate>Thu, 17 Sep 2009 17:09:53 -0400</pubDate>
      <title>Re: quad2d sfit</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261070#680908</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Aaron &quot; &amp;lt;macraiga@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:h8tmp9$4ic$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am looking to integrate the area under a surface fit. I searched for a &lt;br&gt;
&amp;gt; method to do this and found a page on qyad2d&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/index.html?/access/helpdesk/help/toolbox/curvefit/quad2d.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/index.html?/access/helpdesk/help/toolbox/curvefit/quad2d.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which claimed the function quad2d will &quot;Numerically integrate sfit object&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; However when I try to run it I get the error message&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;First input argument must be a function handle.&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can anyone explain to me why this is happening, do I need a more recent &lt;br&gt;
&amp;gt; version of Matlab?&lt;br&gt;
&lt;br&gt;
The QUAD2D method for surface fit (sfit) objects was introduced in version &lt;br&gt;
2.1 of Curve Fitting Toolbox, which was part of release R2009b.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/rn/br5i38t-1.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/rn/br5i38t-1.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If you're using an older version of the toolbox, MATLAB interprets that code &lt;br&gt;
as a call to the QUAD2D _function_ which expects its first input to be a &lt;br&gt;
function handle.  As a workaround, write:&lt;br&gt;
&lt;br&gt;
quad2d(@(x, y) mySFITobject(x, y), lowerXlimit, upperXlimit, lowerYlimit, &lt;br&gt;
upperYlimit)&lt;br&gt;
&lt;br&gt;
making the obvious substitutions.&lt;br&gt;
&lt;br&gt;
If you are using this version of the toolbox, post how you're calling QUAD2D &lt;br&gt;
on the sfit object.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

