<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338</link>
    <title>MATLAB Central Newsreader - Plotting 3-D Surface &amp; Surface Fitting</title>
    <description>Feed for thread: Plotting 3-D Surface &amp; Surface Fitting</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>Tue, 04 Dec 2007 18:36:33 -0500</pubDate>
      <title>Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404495</link>
      <author>Eric </author>
      <description>Does Matlab have a way to create a surface plot from a set &lt;br&gt;
of 3-dimensional (empirical) data points? The data points &lt;br&gt;
(x,y,z) are from a nonlinear system. Also, does Matlab have &lt;br&gt;
a function(s) that can be used generate an equation from a &lt;br&gt;
3D surface plot?   &lt;br&gt;
&lt;br&gt;
Thank You&lt;br&gt;
Eric</description>
    </item>
    <item>
      <pubDate>Tue, 04 Dec 2007 21:33:10 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404540</link>
      <author>John D'Errico</author>
      <description>&quot;Eric &quot; &amp;lt;ErcFrgsn@aol.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fj46nh$cvl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does Matlab have a way to create a surface plot from a set &lt;br&gt;
&amp;gt; of 3-dimensional (empirical) data points? The data points &lt;br&gt;
&amp;gt; (x,y,z) are from a nonlinear system. Also, does Matlab have &lt;br&gt;
&amp;gt; a function(s) that can be used generate an equation from a &lt;br&gt;
&amp;gt; 3D surface plot?   &lt;br&gt;
&lt;br&gt;
If the surface can be interpreted as a single&lt;br&gt;
valued function, z(x,y), then griddata or&lt;br&gt;
more simply gridfit from the File Exchange&lt;br&gt;
will help here. &lt;br&gt;
&lt;br&gt;
If your data represents a closed surface, or&lt;br&gt;
some general convoluted and non-functional&lt;br&gt;
manifold, then no, there is no tool currently&lt;br&gt;
in Matlab or on the file exchange to do this.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Tue, 04 Dec 2007 21:44:44 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404542</link>
      <author>Bruno Luong</author>
      <description>&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in or&lt;br&gt;
&amp;gt; more simply gridfit from the File Exchange&lt;br&gt;
&amp;gt; will help here. &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I have take a look at gridfit the other day, it's an awsome&lt;br&gt;
tool, highly recommended.&lt;br&gt;
&lt;br&gt;
Is there any similar tool for interpolating in 3D?&lt;br&gt;
&lt;br&gt;
Bruno </description>
    </item>
    <item>
      <pubDate>Tue, 04 Dec 2007 22:50:21 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404549</link>
      <author>John D'Errico</author>
      <description>&quot;Bruno Luong&quot; &amp;lt;brunoluong@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fj4hoc$o0f$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in or&lt;br&gt;
&amp;gt; &amp;gt; more simply gridfit from the File Exchange&lt;br&gt;
&amp;gt; &amp;gt; will help here. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have take a look at gridfit the other day, it's an awsome&lt;br&gt;
&amp;gt; tool, highly recommended.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there any similar tool for interpolating in 3D?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Bruno &lt;br&gt;
&lt;br&gt;
Not available in the public domain. It gets tricky,&lt;br&gt;
since gridfit is a variation of a tool that I developed&lt;br&gt;
almost 20 years ago. At the time, Kodak had me&lt;br&gt;
gain several US patents on the methods used, AS&lt;br&gt;
they are applied to color characterization&lt;br&gt;
modeling. I then built nice tools for this purpose&lt;br&gt;
in Matlab to solve these problems in 3d and above.&lt;br&gt;
I've used those tools for up to 7-d surfaces, and&lt;br&gt;
I believe them to still be in use.&lt;br&gt;
&lt;br&gt;
When I wrote gridfit to put on the file exchange&lt;br&gt;
after my retirement, I specifically chose methods&lt;br&gt;
that were not covered in those patents in my&lt;br&gt;
name, and I restricted it to work only in 2-d. As&lt;br&gt;
such, it cannot offer any conflict.&lt;br&gt;
&lt;br&gt;
So, no, sorry. Despite the many times that I've&lt;br&gt;
been asked for a higher dimensional version, I&lt;br&gt;
can't encourage anyone to potentially violate a&lt;br&gt;
patent. Perhaps I can change my mind one day&lt;br&gt;
in the future when those old patents are no&lt;br&gt;
longer active...&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Wed, 05 Dec 2007 06:30:24 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404587</link>
      <author>Bruno Luong</author>
      <description>&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fj4ljd$n3g$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not available in the public domain. It gets tricky,&lt;br&gt;
&amp;gt; since gridfit is a variation of a tool that I developed&lt;br&gt;
&amp;gt; almost 20 years ago. At the time, Kodak had me&lt;br&gt;
&amp;gt; gain several US patents on the methods used, AS&lt;br&gt;
&amp;gt; they are applied to color characterization&lt;br&gt;
&amp;gt; modeling.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So, no, sorry. Despite the many times that I've&lt;br&gt;
&amp;gt; been asked for a higher dimensional version, I&lt;br&gt;
&amp;gt; can't encourage anyone to potentially violate a&lt;br&gt;
&amp;gt; patent. Perhaps I can change my mind one day&lt;br&gt;
&amp;gt; in the future when those old patents are no&lt;br&gt;
&amp;gt; longer active...&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I believe patents expire in about 15/20 years depending on&lt;br&gt;
the country.&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Wed, 05 Dec 2007 18:14:16 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404727</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fj5gi0$37r$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Bruno Luong &amp;lt;brunoluong@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
&amp;gt;message &amp;lt;fj4ljd$n3g$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Not available in the public domain. It gets tricky,&lt;br&gt;
&amp;gt;&amp;gt; since gridfit is a variation of a tool that I developed&lt;br&gt;
&amp;gt;&amp;gt; almost 20 years ago. At the time, Kodak had me&lt;br&gt;
&amp;gt;&amp;gt; gain several US patents on the methods used,&lt;br&gt;
&lt;br&gt;
&amp;gt;I believe patents expire in about 15/20 years depending on&lt;br&gt;
&amp;gt;the country.&lt;br&gt;
&lt;br&gt;
Some countries (including the USA) sometimes allow patents to be renewed&lt;br&gt;
one or more times (not necessarily for as long each time.)&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;All is vanity.&quot;                                   -- Ecclesiastes</description>
    </item>
    <item>
      <pubDate>Wed, 05 Dec 2007 18:35:30 -0500</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#404732</link>
      <author>John D'Errico</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message &lt;br&gt;
&amp;lt;fj6ppo$fol$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fj5gi0$37r$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Bruno Luong &amp;lt;brunoluong@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt;message &amp;lt;fj4ljd$n3g$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Not available in the public domain. It gets tricky,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; since gridfit is a variation of a tool that I developed&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; almost 20 years ago. At the time, Kodak had me&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; gain several US patents on the methods used,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;I believe patents expire in about 15/20 years depending on&lt;br&gt;
&amp;gt; &amp;gt;the country.&lt;br&gt;
&lt;br&gt;
I think it is 17 years in the US.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;gt; Some countries (including the USA) sometimes allow patents to be renewed&lt;br&gt;
&amp;gt; one or more times (not necessarily for as long each time.)&lt;br&gt;
&lt;br&gt;
Yes. I've wondered whether Kodak will choose&lt;br&gt;
to do so here. Only they know. I will check in a&lt;br&gt;
year or so.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Mon, 04 Aug 2008 01:49:02 -0400</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#447054</link>
      <author>Sudha` N</author>
      <description>&lt;br&gt;
Hi - How do you generate the equation for z=f(x,y) from a&lt;br&gt;
surface fitting?&lt;br&gt;
I am using gridfit and have surface fitted my data&lt;br&gt;
successfully. But the key purpose of my experiment is to&lt;br&gt;
generate the equation for z as a function of x and y.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fj4h2m$ei8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Eric &quot; &amp;lt;ErcFrgsn@aol.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;fj46nh$cvl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Does Matlab have a way to create a surface plot from a set &lt;br&gt;
&amp;gt; &amp;gt; of 3-dimensional (empirical) data points? The data points &lt;br&gt;
&amp;gt; &amp;gt; (x,y,z) are from a nonlinear system. Also, does Matlab have &lt;br&gt;
&amp;gt; &amp;gt; a function(s) that can be used generate an equation from a &lt;br&gt;
&amp;gt; &amp;gt; 3D surface plot?   &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If the surface can be interpreted as a single&lt;br&gt;
&amp;gt; valued function, z(x,y), then griddata or&lt;br&gt;
&amp;gt; more simply gridfit from the File Exchange&lt;br&gt;
&amp;gt; will help here. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If your data represents a closed surface, or&lt;br&gt;
&amp;gt; some general convoluted and non-functional&lt;br&gt;
&amp;gt; manifold, then no, there is no tool currently&lt;br&gt;
&amp;gt; in Matlab or on the file exchange to do this.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John</description>
    </item>
    <item>
      <pubDate>Mon, 04 Aug 2008 02:04:01 -0400</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#447057</link>
      <author>John D'Errico</author>
      <description>&quot;Sudha` N&quot; &amp;lt;sudhanatarajan@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g75n6e$qf0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi - How do you generate the equation for z=f(x,y) from a&lt;br&gt;
&amp;gt; surface fitting?&lt;br&gt;
&amp;gt; I am using gridfit and have surface fitted my data&lt;br&gt;
&amp;gt; successfully. But the key purpose of my experiment is to&lt;br&gt;
&amp;gt; generate the equation for z as a function of x and y.&lt;br&gt;
&lt;br&gt;
Sorry, but the surface that gridfit generates&lt;br&gt;
has no simple model. There is no &quot;equation&quot;,&lt;br&gt;
besides a local, piecewise linear interpolant.&lt;br&gt;
In effect, gridfit produces a variant of a low&lt;br&gt;
order spline, in two dimensions.&lt;br&gt;
&lt;br&gt;
Can you generate an equation for the surface?&lt;br&gt;
Yes, you can choose to fit a model to that,&lt;br&gt;
but that will require that you choose a model&lt;br&gt;
form, as well as a fitting method.&lt;br&gt;
&lt;br&gt;
If your goal was really to generate a model&lt;br&gt;
expression for this surface, then gridfit was&lt;br&gt;
the wrong choice for your fit. You are now&lt;br&gt;
fitting a model to the approximation that&lt;br&gt;
gridfit chose. So you essentially have two sets&lt;br&gt;
of residuals, and two sources of lack of fit to&lt;br&gt;
deal with. If your true goal was that equation,&lt;br&gt;
then you should fit it to your original data.&lt;br&gt;
&lt;br&gt;
KNOW YOUR GOALS!!! Know what it is you&lt;br&gt;
need to gain from any such effort, before&lt;br&gt;
you begin the process of modeling. Otherwise&lt;br&gt;
you are just wasting time.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Mon, 04 Aug 2008 02:36:02 -0400</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#447060</link>
      <author>Sudha` N</author>
      <description>&lt;br&gt;
&lt;br&gt;
&amp;gt; If your true goal was that equation,&lt;br&gt;
&amp;gt; then you should fit it to your original data.&lt;br&gt;
&lt;br&gt;
John - Thanks. Yes my true goal is the equation, but I&lt;br&gt;
needed a nice graphical representation of my data too. Using&lt;br&gt;
gridfit was very quick and easy to do it. &lt;br&gt;
&lt;br&gt;
What is the best and fastest way to model an equation &lt;br&gt;
for my data using matlab? &lt;br&gt;
&lt;br&gt;
Please provide me some pointers and I can read up from&lt;br&gt;
there.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;g75o2h$oco$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Sudha` N&quot; &amp;lt;sudhanatarajan@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g75n6e$qf0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hi - How do you generate the equation for z=f(x,y) from a&lt;br&gt;
&amp;gt; &amp;gt; surface fitting?&lt;br&gt;
&amp;gt; &amp;gt; I am using gridfit and have surface fitted my data&lt;br&gt;
&amp;gt; &amp;gt; successfully. But the key purpose of my experiment is to&lt;br&gt;
&amp;gt; &amp;gt; generate the equation for z as a function of x and y.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sorry, but the surface that gridfit generates&lt;br&gt;
&amp;gt; has no simple model. There is no &quot;equation&quot;,&lt;br&gt;
&amp;gt; besides a local, piecewise linear interpolant.&lt;br&gt;
&amp;gt; In effect, gridfit produces a variant of a low&lt;br&gt;
&amp;gt; order spline, in two dimensions.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can you generate an equation for the surface?&lt;br&gt;
&amp;gt; Yes, you can choose to fit a model to that,&lt;br&gt;
&amp;gt; but that will require that you choose a model&lt;br&gt;
&amp;gt; form, as well as a fitting method.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If your goal was really to generate a model&lt;br&gt;
&amp;gt; expression for this surface, then gridfit was&lt;br&gt;
&amp;gt; the wrong choice for your fit. You are now&lt;br&gt;
&amp;gt; fitting a model to the approximation that&lt;br&gt;
&amp;gt; gridfit chose. So you essentially have two sets&lt;br&gt;
&amp;gt; of residuals, and two sources of lack of fit to&lt;br&gt;
&amp;gt; deal with. If your true goal was that equation,&lt;br&gt;
&amp;gt; then you should fit it to your original data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; KNOW YOUR GOALS!!! Know what it is you&lt;br&gt;
&amp;gt; need to gain from any such effort, before&lt;br&gt;
&amp;gt; you begin the process of modeling. Otherwise&lt;br&gt;
&amp;gt; you are just wasting time.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John</description>
    </item>
    <item>
      <pubDate>Mon, 04 Aug 2008 03:40:04 -0400</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#447062</link>
      <author>Sudha` N</author>
      <description>&lt;br&gt;
Got my answers here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.de/matlabcentral/newsreader/view_thread/163107&quot;&gt;http://www.mathworks.de/matlabcentral/newsreader/view_thread/163107&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&quot;Sudha` N&quot; &amp;lt;sudhanatarajan@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g75pui$90r$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If your true goal was that equation,&lt;br&gt;
&amp;gt; &amp;gt; then you should fit it to your original data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John - Thanks. Yes my true goal is the equation, but I&lt;br&gt;
&amp;gt; needed a nice graphical representation of my data too. Using&lt;br&gt;
&amp;gt; gridfit was very quick and easy to do it. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is the best and fastest way to model an equation &lt;br&gt;
&amp;gt; for my data using matlab? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please provide me some pointers and I can read up from&lt;br&gt;
&amp;gt; there.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g75o2h$oco$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Sudha` N&quot; &amp;lt;sudhanatarajan@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g75n6e$qf0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hi - How do you generate the equation for z=f(x,y) from a&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; surface fitting?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I am using gridfit and have surface fitted my data&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; successfully. But the key purpose of my experiment is to&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; generate the equation for z as a function of x and y.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Sorry, but the surface that gridfit generates&lt;br&gt;
&amp;gt; &amp;gt; has no simple model. There is no &quot;equation&quot;,&lt;br&gt;
&amp;gt; &amp;gt; besides a local, piecewise linear interpolant.&lt;br&gt;
&amp;gt; &amp;gt; In effect, gridfit produces a variant of a low&lt;br&gt;
&amp;gt; &amp;gt; order spline, in two dimensions.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Can you generate an equation for the surface?&lt;br&gt;
&amp;gt; &amp;gt; Yes, you can choose to fit a model to that,&lt;br&gt;
&amp;gt; &amp;gt; but that will require that you choose a model&lt;br&gt;
&amp;gt; &amp;gt; form, as well as a fitting method.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If your goal was really to generate a model&lt;br&gt;
&amp;gt; &amp;gt; expression for this surface, then gridfit was&lt;br&gt;
&amp;gt; &amp;gt; the wrong choice for your fit. You are now&lt;br&gt;
&amp;gt; &amp;gt; fitting a model to the approximation that&lt;br&gt;
&amp;gt; &amp;gt; gridfit chose. So you essentially have two sets&lt;br&gt;
&amp;gt; &amp;gt; of residuals, and two sources of lack of fit to&lt;br&gt;
&amp;gt; &amp;gt; deal with. If your true goal was that equation,&lt;br&gt;
&amp;gt; &amp;gt; then you should fit it to your original data.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; KNOW YOUR GOALS!!! Know what it is you&lt;br&gt;
&amp;gt; &amp;gt; need to gain from any such effort, before&lt;br&gt;
&amp;gt; &amp;gt; you begin the process of modeling. Otherwise&lt;br&gt;
&amp;gt; &amp;gt; you are just wasting time.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 04 Aug 2008 05:00:04 -0400</pubDate>
      <title>Re: Plotting 3-D Surface &amp; Surface Fitting</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/160338#447071</link>
      <author>John D'Errico</author>
      <description>&quot;Sudha` N&quot; &amp;lt;sudhanatarajan@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g75pui$90r$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If your true goal was that equation,&lt;br&gt;
&amp;gt; &amp;gt; then you should fit it to your original data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John - Thanks. Yes my true goal is the equation, but I&lt;br&gt;
&amp;gt; needed a nice graphical representation of my data too. Using&lt;br&gt;
&amp;gt; gridfit was very quick and easy to do it. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is the best and fastest way to model an equation &lt;br&gt;
&amp;gt; for my data using matlab? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please provide me some pointers and I can read up from&lt;br&gt;
&amp;gt; there.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
The problem is, there is NO best way, nor&lt;br&gt;
is there a terribly fast way that is any good.&lt;br&gt;
Even in one dimension, finding the function&lt;br&gt;
that generates a simple curve is a often&lt;br&gt;
difficult process. It very much helps if you&lt;br&gt;
have some prior knowledge as to the correct&lt;br&gt;
mathematical form for your model. Without&lt;br&gt;
that knowledge, it becomes a total guessing&lt;br&gt;
game.&lt;br&gt;
&lt;br&gt;
Of course, someone will probably be tempted&lt;br&gt;
to suggest polynomials, as my own polyfitn&lt;br&gt;
(also on the fex) can do the fitting. However,&lt;br&gt;
while this is a fast solution, polynomial&lt;br&gt;
models have their limits, and this does not&lt;br&gt;
yield some simple relationship.&lt;br&gt;
&lt;br&gt;
I'm sorry not to be of much help here.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
  </channel>
</rss>

