Effacer les filtres
Effacer les filtres

Deleting rows from array

1 vue (au cours des 30 derniers jours)
Rachel Ramirez
Rachel Ramirez le 3 Déc 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?

Réponse acceptée

David Hill
David Hill le 3 Déc 2020
a(a(:,3)>5,:)=[];

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by