title: Best way to delete first row from matrix in matlab
body: <p>I plan on deleting the first row of a matrix multiple times and was wondering what the best/most efficient way of doing this would be.</p>
  
  <p>I know I can do something like this </p>
  
  <pre><code>  M(1,:)=[]
  </code></pre>
  
  <p>or </p>
  
  <pre><code>M = M(2:end)
  </code></pre>
  
  <p>but I am not sure which is the best way or if there is another better way.</p>