Azzera filtri
Azzera filtri

Deleting rows from array

1 visualizzazione (ultimi 30 giorni)
Rachel Ramirez
Rachel Ramirez il 3 Dic 2020
Risposto: David Hill il 3 Dic 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?

Risposta accettata

David Hill
David Hill il 3 Dic 2020
a(a(:,3)>5,:)=[];

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by