How do I remove rows in a matrix, that have zero in them?
Ältere Kommentare anzeigen
My matrix is: 20 0 0 15 1 3 35 0 0 40 1 0 35 0 0 20 0 0 55 1 3
How do I remove the rows containing 0?
Antworten (1)
Azzi Abdelmalek
am 15 Jan. 2015
Bearbeitet: Azzi Abdelmalek
am 15 Jan. 2015
A(any(A==0,2),:)=[]
1 Kommentar
Mathilde Engell
am 15 Jan. 2015
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!