title: How to represent e^(-t^2) in MATLAB?
body: <p>I am a beginner in MATLAB, and I need to represent e<sup>(-t<sup>2</sup>)</sup>.</p>
  
  <p>I know that, for example, to represent e<sup>x</sup> I use <code>exp(x)</code>, and I have tried the following</p>
  
  <p>1) tp=t^2; / tp=t*t;
     x=exp(-tp);</p>
  
  <p>2) x=exp(-t^2);</p>
  
  <p>3) x=exp(-(t*t));</p>
  
  <p>4) x=exp(-t)*exp(-t);</p>
  
  <p>What is the correct way to do it?</p>