title: MATLAB does not define vector for a specific function when I use a vector as an input
body: <p>The code block is the following</p>
  
  <pre><code>V=0:30
  Gacc=V.^2/(g*L+Kus*V.^2)
  Gyaw=V./(L+Kus*(V.^2/g))
  </code></pre>
  
  <p>I can perfectly get Gyaw as a vector but for Gacc I only get a scalar for the final input V=30.
  I tried it in a for loop and saw that it can calculate but somehow I only get the last one.
  How do I assign them to a vector?</p>
  
  <p>g=9.81, L=2.794 and Kus=0.026294 all constants.</p>