title: How to plot this equation in matlab
body: <p>alright well I have the follow function</p>
  
  <pre><code>y=sin(x)^2 + [(10+2x+x^2) / (5+2x^2)]
  </code></pre>
  
  <p>i need to plot it on the interval y = -2 to y = 2 so how would I set that up?</p>
  
  <p>I did this in matlab</p>
  
  <pre><code>   &gt;&gt;  y = sin(x).^2 + (10 + 2*x + x.^2)/(5+2*x.^2)
     &gt;&gt;  x = -2:0.01:2;
  </code></pre>
  
  <p>is that a correct setup? Or have I done something wrong </p>