title: How does MATLAB's normpdf function work?
body: <p>When trying to plot a normal PDF with mean=0 and standard deviation=20 using the MATLAB command normpdf() I get weird results, see picture.</p>
  
  <p><img src="https://i.stack.imgur.com/gmnQW.jpg" alt="alt text"></p>
  
  <p>The code used to plot the figure is as follows:</p>
  
  <pre><code>plot(normpdf((-100:0.1:100),0,20))
  </code></pre>
  
  <p>What is the correct way of using this function?</p>