How to find first row with a nonzero element in an image matrix?

3 visualizzazioni (ultimi 30 giorni)
I am trying to find the first row in an image matrix with a non zero value in it.
PLS&THANK YOU!

Risposta accettata

Walter Roberson
Walter Roberson il 16 Ago 2019
Modificato: Walter Roberson il 16 Ago 2019
find(any(any(YourImage, 3),2),1,'first')

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by