Filter löschen
Filter löschen

Selecting records from a matrix subject to a condition

1 Ansicht (letzte 30 Tage)
Maroulator
Maroulator am 19 Mär. 2017
Beantwortet: Walter Roberson am 19 Mär. 2017
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Mär. 2017
M(M(:,3)>=20, :)

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by