フィルターのクリア

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 Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by