<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218</link>
    <title>MATLAB Central Newsreader - Non-polynomial Curve Fit problem</title>
    <description>Feed for thread: Non-polynomial Curve Fit problem</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, 16 Apr 2009 18:36:01 -0400</pubDate>
      <title>Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643252</link>
      <author>lan </author>
      <description>Below is my figure data:&lt;br&gt;
&lt;br&gt;
x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';&lt;br&gt;
y=[-11.56   -5.57  3.26    7.15    7.69    5.82   7.99   10.45    2.70         0];&lt;br&gt;
plot(x,y,'ro-');&lt;br&gt;
grid;&lt;br&gt;
axis equal;&lt;br&gt;
&lt;br&gt;
I have tried the polyfit but not successful, which changed my data order firstly.&lt;br&gt;
I want to make a curve fit which can keep the shape of the path in above figure. Especially in the right side where there is a ear or shoulder shape.&lt;br&gt;
&lt;br&gt;
Thanks,</description>
    </item>
    <item>
      <pubDate>Thu, 16 Apr 2009 18:57:01 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643260</link>
      <author>someone </author>
      <description>&quot;lan &quot; &amp;lt;amoyjiajia@hotmail.com&amp;gt; wrote in message &amp;lt;gs7tqh$3oc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Below is my figure data:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';&lt;br&gt;
&amp;gt; y=[-11.56   -5.57  3.26    7.15    7.69    5.82   7.99   10.45    2.70         0];&lt;br&gt;
&amp;gt; plot(x,y,'ro-');&lt;br&gt;
&amp;gt; grid;&lt;br&gt;
&amp;gt; axis equal;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have tried the polyfit but not successful, which changed my data order firstly.&lt;br&gt;
&amp;gt; I want to make a curve fit which can keep the shape of the path in above figure. Especially in the right side where there is a ear or shoulder shape.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&lt;br&gt;
You might download and try EzyFit from the MATLAB FEX at:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/10176&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/10176&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
You will still have to make some guess as to the type of equation you want to fit to.&lt;br&gt;
&lt;br&gt;
What type of equation will give you the &quot;ear or shoulder shape&quot; you want?&lt;br&gt;
Think about it!</description>
    </item>
    <item>
      <pubDate>Thu, 16 Apr 2009 20:07:02 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643281</link>
      <author>John D'Errico</author>
      <description>&quot;lan &quot; &amp;lt;amoyjiajia@hotmail.com&amp;gt; wrote in message &amp;lt;gs7tqh$3oc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Below is my figure data:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';&lt;br&gt;
&amp;gt; y=[-11.56   -5.57  3.26    7.15    7.69    5.82   7.99   10.45    2.70         0];&lt;br&gt;
&amp;gt; plot(x,y,'ro-');&lt;br&gt;
&amp;gt; grid;&lt;br&gt;
&amp;gt; axis equal;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have tried the polyfit but not successful, which changed my data order firstly.&lt;br&gt;
&amp;gt; I want to make a curve fit which can keep the shape of the path in above figure. Especially in the right side where there is a ear or shoulder shape.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&lt;br&gt;
I would suggest a simple model:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;yhat = mean(y)&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Thu, 16 Apr 2009 20:25:05 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643285</link>
      <author>lan </author>
      <description>John:&lt;br&gt;
&lt;br&gt;
What is the idea of your simple model. I can not follow it. Thanks,</description>
    </item>
    <item>
      <pubDate>Thu, 16 Apr 2009 20:37:01 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643289</link>
      <author>lan </author>
      <description>I just find 'cscvn' may help to this problem. //&quot;Natural&quot; or periodic interpolating cubic spline curve. Though it is not the curve fit.&lt;br&gt;
&lt;br&gt;
x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';&lt;br&gt;
y=[-11.56 -5.57 3.26 7.15 7.69 5.82 7.99 10.45 2.70 0]';&lt;br&gt;
plot(x,y,'ro-');&lt;br&gt;
grid;&lt;br&gt;
axis equal;&lt;br&gt;
&lt;br&gt;
figure;&lt;br&gt;
p=[x' ; y'];&lt;br&gt;
fnplt(cscvn(p)); &lt;br&gt;
grid;</description>
    </item>
    <item>
      <pubDate>Thu, 16 Apr 2009 21:09:01 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#643298</link>
      <author>John D'Errico</author>
      <description>&quot;lan &quot; &amp;lt;amoyjiajia@hotmail.com&amp;gt; wrote in message &amp;lt;gs8471$b8v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; John:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is the idea of your simple model. I can not follow it. Thanks,&lt;br&gt;
&lt;br&gt;
A polynomial fit for this data is simply fatuous.&lt;br&gt;
I'm sorry, but it would be ridiculous in the&lt;br&gt;
extreme. Just to throw random data into a&lt;br&gt;
computer and expecting anything sensible to&lt;br&gt;
come out, with no further input from the &lt;br&gt;
scientist, analyst, or other knowledgeable&lt;br&gt;
person?&lt;br&gt;
&lt;br&gt;
You have no model for the curve, nor have you&lt;br&gt;
expressed any indication that there should be a&lt;br&gt;
model, mechanistic or not, for this data. It is&lt;br&gt;
apparently not much more than a random walk.&lt;br&gt;
The best predictor for such a random process is&lt;br&gt;
probably just the mean of the data. Certainly so&lt;br&gt;
if you have no other information to provide.&lt;br&gt;
&lt;br&gt;
john</description>
    </item>
    <item>
      <pubDate>Thu, 23 Apr 2009 13:01:59 -0400</pubDate>
      <title>Re: Non-polynomial Curve Fit problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249218#644891</link>
      <author>Predictor</author>
      <description>On Apr 16, 2:36 pm, &quot;lan &quot; &amp;lt;amoyjia...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Below is my figure data:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x=[-28.87 -27.35 -18.67 -22.42 -34.53 -52.73 -60.72 -68.06 -87.41 -94.16]';&lt;br&gt;
&amp;gt; y=[-11.56   -5.57  3.26    7.15    7.69    5.82   7.99   10.45    2.70         0];&lt;br&gt;
&amp;gt; plot(x,y,'ro-');&lt;br&gt;
&amp;gt; grid;&lt;br&gt;
&amp;gt; axis equal;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have tried the polyfit but not successful, which changed my data order firstly.&lt;br&gt;
&amp;gt; I want to make acurve fitwhich can keep the shape of the path in above figure. Especially in the right side where there is a ear or shoulder shape.&lt;br&gt;
&lt;br&gt;
Is 'y' a function of 'x'?  The order of the points seems to suggest&lt;br&gt;
otherwise.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-Will Dwinnell&lt;br&gt;
&lt;a href=&quot;http://matlabdatamining.blogspot.com/&quot;&gt;http://matlabdatamining.blogspot.com/&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

