<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Polynomial fitting' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Polynomial fitting' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 01:33:10 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 01:33:10 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Polynomial fitting</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/430054/430054/polynomial-fitting/</link>
      <description>hello,&lt;br /&gt;
i have a problem with this code ,I'am looking for the équation of the polynomial that fits the curve on this image   &lt;br /&gt;
I tried the fitting by figure window-tools-basic fiting  but I didn't have any convincing result &lt;br /&gt;
could you please help me &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
clear;
clc;
I=imread('C:\Documents and Settings\Administrateur\Bureau\TT.bmp');

I=I(:,:,1)&amp;gt;160;
imshow(I)
I=bwmorph(~I,'thin','inf');
imshow(~I)
I = imresize(I, [199 199]);
imtool(I);

[N,N]=size(I); 
        iptsetpref('ImshowAxesVisible','on') 
        figure; imshow(I,[],'Xdata',[0:N-1],'Ydata',[0:N-1],'InitialMagnification','fit')
        xlabel('x')
        ylabel('y')
        title('initial image');
        colormap(gray), colorbar;
        x=zeros(1,199*199);
        inc=1;
        y=x;
 figure;         
    for l=1:199       
   
        for c=1:199           
    
            if (I(l,c)==1)        
                x(1,inc)=l;
                y(1,inc)= c;         
                inc=inc+1;      
            
            end
        end
    end
imtool(x);
imtool(y);
hold on     
plot(x,y,'.');
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
the  image is attached there&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2472"&gt;TT.bmp&lt;/a&gt; (7654 bytes | downloaded 20 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/430054/430054/polynomial-fitting/</guid>
      <pubDate>Thu, 01 Nov 2012 18:16:33 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>