If any of the matrix element or elements value is 1 or greater than 1 , then how can I delete that row or rows from a (M * N) matrix ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sourasis Chattopadhyay
le 26 Déc 2022
Réponse apportée : Image Analyst
le 26 Déc 2022
0 commentaires
Réponse acceptée
KSSV
le 26 Déc 2022
A = [2 4 1; 4 5 2 ; 2 4 1 ;3 1 3; 2 6 3] ;
idx = any(A==1,2) ;
A(idx,:)=[];
A
2 commentaires
Plus de réponses (1)
Image Analyst
le 26 Déc 2022
To learn other fundamental concepts, invest 2 hours of your time here:
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!