title: How can I plot y=mx+b in Matlab?
body: <p>I was wondering if it is possible to plot a line of the form <code>y = mx+b</code> in Matlab? I used <code>polyfit</code> to get a 1x2 array that contains the slope and intercept.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>lineFit = polyfit(tauBin, a5array, 1);
  plot((lineFit(1)*x + lineFit(2)))
  </code></pre>
  
  <p>How can I plot this?</p>