title: Attempt to execute script as a function
body: <p>I want to plot this in MATLAB:</p>
  
  <pre><code>x=[-2:0.01:4];
  y=3.5.^(-0.5*x).*cos(6*x);
  plot(x,y)
  </code></pre>
  
  <p>but it gives an error like this:</p>
  
  <blockquote>
    <p>Attempt to execute SCRIPT plot as a function:<br>
    C:\Users\User\Downloads\Private\New folder (2)\Desktop\plot.m</p>
    
    <p>Error in plot67 (line 3)<br>
    plot(x,y)</p>
  </blockquote>
  
  <p>How do I resolve this?</p>