Find the number of rows and column of non-zero number(1st)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
fyza affandi
am 27 Nov. 2018
Kommentiert: fyza affandi
am 27 Nov. 2018
Given matrix of Mat. How can I find the number of row & column of the 1st non-zero number?
Mat =
0 0
0 0
0 0
0 0
0 0
0 1
1 1
The result should be:-
a=[6 2]
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!