필터 지우기
필터 지우기

Selecting records from a matrix subject to a condition

조회 수: 1 (최근 30일)
Maroulator
Maroulator 2017년 3월 19일
답변: Walter Roberson 2017년 3월 19일
My matrix(M) looks like the data below; how can I pull the records that have a third column greater than or equal to 20?
1 0.4 12
2 1.3 20
3 1.2 15
4 2.1 21

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 19일
M(M(:,3)>=20, :)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by