How can I delete a row of numbers in which the number in the first column is less than a threshold?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I delete a row of numbers in which the number in the first column is less than a threshold?
0 commentaires
Réponse acceptée
Sean de Wolski
le 19 Juin 2013
glass half empty
X(X(:,1)<10,:) = [];
glass half full
Y = X(X(:,1)>=10,:);
Plus de réponses (1)
Azzi Abdelmalek
le 19 Juin 2013
A=rand(100,2) %example
a=A(1,:);
A(A(:,1)<0.2,:)=[];
A=[a;A]
0 commentaires
Voir également
Catégories
En savoir plus sur Environment and Settings 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!