<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241738</link>
    <title>MATLAB Central Newsreader - fitting script</title>
    <description>Feed for thread: fitting script</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, 30 Dec 2008 21:07:02 -0500</pubDate>
      <title>fitting script</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241738#619322</link>
      <author>yakir</author>
      <description>I am trying to make a simple fit and I just don't get things right.&lt;br&gt;
&lt;br&gt;
I am trying to fit for the function y=a*sin(b*x+c)&lt;br&gt;
I have the variable&lt;br&gt;
y=[1,1.1............]&lt;br&gt;
and&lt;br&gt;
x=[0,0.2,..............]&lt;br&gt;
&lt;br&gt;
those hold the information to fit by&lt;br&gt;
&lt;br&gt;
if can someone write the script that will give me a, b and c properly&lt;br&gt;
it will be very helpful&lt;br&gt;
thanks</description>
    </item>
    <item>
      <pubDate>Tue, 30 Dec 2008 21:21:02 -0500</pubDate>
      <title>Re: fitting script</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241738#619323</link>
      <author>Mastaneh </author>
      <description>yakir &amp;lt;yakirsudry@gmail.com&amp;gt; wrote in message &amp;lt;4bc2addb-8190-420f-b4e1-d4c084d8caab@l33g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; I am trying to make a simple fit and I just don't get things right.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am trying to fit for the function y=a*sin(b*x+c)&lt;br&gt;
&amp;gt; I have the variable&lt;br&gt;
&amp;gt; y=[1,1.1............]&lt;br&gt;
&amp;gt; and&lt;br&gt;
&amp;gt; x=[0,0.2,..............]&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; those hold the information to fit by&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; if can someone write the script that will give me a, b and c properly&lt;br&gt;
&amp;gt; it will be very helpful&lt;br&gt;
&amp;gt; thanks&lt;br&gt;
&lt;br&gt;
I would suggest using the curve fitting Toolbox. Just type 'cftool' in the command line, import your x and y data, and select the type of fit you're looking for - in this case, Sum of Sin Functions. Once satisfied with the fit, you can generate an M-file from the File menu and modify it if you wish.&lt;br&gt;
&lt;br&gt;
hope it helps,&lt;br&gt;
Mastaneh </description>
    </item>
    <item>
      <pubDate>Tue, 30 Dec 2008 21:56:01 -0500</pubDate>
      <title>Re: fitting script</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241738#619327</link>
      <author>someone </author>
      <description>&quot;Mastaneh&quot; &amp;lt;mtorkama@iupui.edu&amp;gt; wrote in message &amp;lt;gje3bu$l24$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; yakir &amp;lt;yakirsudry@gmail.com&amp;gt; wrote in message &amp;lt;4bc2addb-8190-420f-b4e1-d4c084d8caab@l33g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I am trying to make a simple fit and I just don't get things right.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am trying to fit for the function y=a*sin(b*x+c)&lt;br&gt;
&amp;gt; &amp;gt; I have the variable&lt;br&gt;
&amp;gt; &amp;gt; y=[1,1.1............]&lt;br&gt;
&amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; x=[0,0.2,..............]&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; those hold the information to fit by&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; if can someone write the script that will give me a, b and c properly&lt;br&gt;
&amp;gt; &amp;gt; it will be very helpful&lt;br&gt;
&amp;gt; &amp;gt; thanks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would suggest using the curve fitting Toolbox. Just type 'cftool' in the command line, import your x and y data, and select the type of fit you're looking for - in this case, Sum of Sin Functions. Once satisfied with the fit, you can generate an M-file from the File menu and modify it if you wish.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; hope it helps,&lt;br&gt;
&amp;gt; Mastaneh &lt;br&gt;
&lt;br&gt;
If you don't have the curve fitting toolbox, you can try EzyFit from the file exchange.&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;</description>
    </item>
  </channel>
</rss>

