필터 지우기
필터 지우기

matrix search and the save on a new matrix

조회 수: 2 (최근 30일)
André Sousa
André Sousa 2014년 5월 20일
답변: Yao Li 2014년 5월 20일
Hi there. I have a 2 collumn ndm a couple thousand rows matrix. The first collumn has some number labels and the second collumn has zeros or ones. I want to locate the ones of the second collumn and save them with the corresponding labels on a new matrix. How can I do it? Regards

답변 (1개)

Yao Li
Yao Li 2014년 5월 20일
find(a(:,2)) can be used to find the index of the non-zero rows.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by