Friday, October 1, 2010

Zero subtraction from a Matrix in Matlab

A=[2 1 0 7 0 1 0 3 4 8 7 5 0 2];
A(A==0)=[];

No comments:

Post a Comment