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]
arraymatrixvector
Mat = 0 0 0 0 0 0 0 0 0 0 0 1 1 1
a=[6 2]
Best Answer