필터 지우기
필터 지우기

How to extract certain rows of a matrix?

조회 수: 2 (최근 30일)
Mnr
Mnr 2014년 3월 26일
댓글: Mnr 2014년 3월 26일
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일
Mnr, you could use
rows = find(all(data==0,2))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

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

Community Treasure Hunt

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

Start Hunting!

Translated by