find the index of the rows that have all 1
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
pamela sulis
il 7 Apr 2016
Modificato: Azzi Abdelmalek
il 7 Apr 2016
Hi, I have a matrix
A= [ 0 0 0 0 0
0 1 1 1 1
1 1 1 0 0
0 0 0 0 1
0 0 0 1 0
1 1 1 1 1
0 1 1 1 1
0 1 1 1 0
0 0 1 1 1
1 1 1 1 1
0 0 0 1 0]
I want to find the index of the rows that have all 1, can you help me?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 7 Apr 2016
Modificato: Azzi Abdelmalek
il 7 Apr 2016
idx=find(all(A,2))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!