diff m-toolbox/html_help/help/ug/sigproc_polyfit_content.html @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/html_help/help/ug/sigproc_polyfit_content.html	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,19 @@
+<p>
+  <a href="matlab:doc('ao/polyfit')">polyfit.m</a> overloads the polyfit() function of MATLAB for Analysis Objects.<br/>
+  The script calls the following MATLAB functions:
+  <ul>
+    <li> polyfit.m </li>
+    <li> polyval.m </li>
+  </ul>
+  <h2><a name="usage">Usage</a></h2>
+  <div class="fragment"><pre>
+      <span class="comment">% CALL:        b = polyfit(a, pl)</span>
+      <span class="comment">%</span>
+      <span class="comment">% Parameters:  'N'      - degree of polynomial to fit</span>
+      <span class="comment">%              'coeffs' - (optional) coefficients</span>
+      <span class="comment">%                         formed e.g. by [p,s] = polyfit(x,y,N);</span>
+  </pre></div>
+  The MATLAB function polyfit.m finds the coefficients of the polynomial p(x) of degree N that fits the vector 'x' to the vector 'y', in a least squares sense.<br/> After this in the script <a href="matlab:doc('ao/polyfit')">polyfit.m</a> the function polyval.m is called, which  evaluates the polynomial of order 'N' according to these coefficients. <br/>
+  Using the output of polyval.m the fitted data series is created and outputted as analysis object.
+</p>
+