title: MATLAB: power function curve fitting
body: <p>I would like to know the MATLAB code form of the power polynomial <em>y</em> = <em>x</em><sup><em>m</em></sup>.<br>
  I require the numerical value of <i>m</i> by fitting this curve to a set of data. My initial program is as follows:</p>
  
  <pre><code>load A   
  N = A(:, 1);
  t = A(:, 2);    
  p = polyfit(log(N), log(t), 1);    
  f = (p, t);    
  plot(t, N, '-', t, f, '-');
  </code></pre>
  
  <p>My only doubt is the above <code>polyfit</code> function used for curve fitting is for the equation <em>y</em> = <em>bx</em><sup><em>m</em></sup> which is not fitting my data set, where I require <i>b</i> = 1.</p>