title: how to make a plot of an integral function?
body: <p>I made an integral as follow :</p>
  
  <pre><code>fun = @(t)((2/sqrt(pi)) * (exp(1).^((-t).^(2))));
  </code></pre>
  
  <p>it works fine to calculate it :</p>
  
  <pre><code>q = integral(fun, 0, 2);
  </code></pre>
  
  <p>But I'd like to plot the result from 0 to different max (0 to 1, 0 to 2, etc...)</p>
  
  <p>I tried</p>
  
  <pre><code>plot(A,fun, '-b');
  </code></pre>
  
  <p>and I cannot find another way to make it work. What would be the right way, and why isn't it working?</p>