How do I remove rows in a matrix, that have zero in them?

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?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 1월 15일
편집: Azzi Abdelmalek 2015년 1월 15일
A(any(A==0,2),:)=[]

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2015년 1월 15일

댓글:

2015년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by