filtering values in a matrix
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
for example I have a matrix
A=1 2
3 0
0 0
4 5
0 6
I need to filter out only those rows having no zeros(in this case [4 5]). thank you for your help.........
2 commentaires
Réponse acceptée
Walter Roberson
le 11 Mar 2013
A( all(A,2), : ) = [];
If "filter out" means to remove.
3 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!