Filter löschen
Filter löschen

Deleting rows from array

1 Ansicht (letzte 30 Tage)
Rachel Ramirez
Rachel Ramirez am 3 Dez. 2020
Beantwortet: David Hill am 3 Dez. 2020
If I have an array with 20 rows and 3 columns but I want to delete any row in which the 3rd column is greater than 5, how would I do it?

Akzeptierte Antwort

David Hill
David Hill am 3 Dez. 2020
a(a(:,3)>5,:)=[];

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements 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