MATLAB: Removing zeros from column

matrix manipulation

A=[1;2;2;0;0;3;0;0];
%I need to remove all "0" in A matrix then I need to create a matrix without "0" like; [1;2;2;3]

Best Answer

A(A==0) = []