title: How can i plot an ellipse and parabola together in Matlab?
body: <p>I need to plot a parabola and ellipse. However the ellipse is giving me trouble. Can anyone help? The equations are: y = -5*x^2 + 2 and (x^2/16) + (y^2/2) = 4</p>
  
  <p>I've tried this code but obviously I feel like like it isn't right.</p>
  
  <pre class="lang-matlab prettyprint-override"><code>x = linspace(-5, 5);
  y1 = (x.^2/16) + (y.^2/2) - 1; 
  y2 = -5*x.^2 +2;
  figure(1)
  plot(x, y1)
  hold on
  plot(x, y2)
  hold off
  </code></pre>