removing zeros from column

3 views (last 30 days)
sermet
sermet on 4 Aug 2015
Answered: Al Dente on 4 Aug 2015
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]

Accepted Answer

Al Dente
Al Dente on 4 Aug 2015
A(A==0) = []

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!