title: How to delete zero components in a vector in Matlab?
body: <p>I have a vector for example</p>
  
  <pre><code>a = [0 1 0 3]
  </code></pre>
  
  <p>I want to turn a into b which equals <code>b = [1 3]</code>.</p>
  
  <p>How do I perform this in general? So I have a vector with some zero components and I want to remove the zeroes and leave just the non-zero numbers?</p>