필터 지우기
필터 지우기

Selection of logical data

조회 수: 1 (최근 30일)
Francis Chabot
Francis Chabot 2021년 3월 25일
답변: Cris LaPierre 2021년 3월 25일
Hello,
I have a matrix with this form:
1 156 NaN NaN NaN
1 157 NaN NaN NaN
1 158 1.85185185185185 2.63157894736842 2.04081632653061
0 159 NaN NaN NaN
1 160 1.96078431372549 3.44827586206897 1.56250000000000
I wanna form a new matrix with this one where I would only have the rows that are true (=1) and keep all the column.
Best regards,

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 3월 25일

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by