Delete leading zeros from vector in Matlab
<p>Can I trim the leading zeros in vectors [0 0 0 2 8 12] , [0 1 8 0 3 0] , [0 0 0 0 25 0] off so to get [2 8 12] , [1 8 0 3 0] , [25 0] with the same function?
Is there a way to do it without using a <code>while</code> loop? (Or any other kind of loop?) </p>

<p>I intend to turn the vector into a string, such as '2h 8m 12s', '1mo 8d 0h 3m 0s', '25m 0s', if that will open any doors.</p>