How to extract certain rows of a matrix?

Hello all,
I have a matrix having large dimension (165475 X 2). Some of its rows have a coordinate of (0,0). I would like to extract those rows. In other words, I would like each row of my matrix be treated as a vector and I am interested in the index of those rows. Thanks.

 채택된 답변

Mischa Kim
Mischa Kim 2014년 3월 26일

0 개 추천

Mnr, you could use
rows = find(all(data==0,2))

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

질문:

Mnr
2014년 3월 26일

댓글:

Mnr
2014년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by