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

3 ビュー (過去 30 日間)
I am trying to find the first row in an image matrix with a non zero value in it.
PLS&THANK YOU!

採用された回答

Walter Roberson
Walter Roberson 2019 年 8 月 16 日
編集済み: Walter Roberson 2019 年 8 月 16 日
find(any(any(YourImage, 3),2),1,'first')
  1 件のコメント
Teresita Ramirez Aguilar
Teresita Ramirez Aguilar 2019 年 8 月 19 日
My mistake, Walter Roberson you are correct!!! Thank you so much for your help :D

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by