How can I convert all NaNs to Zero in the image?

3 ビュー (過去 30 日間)
Andrea
Andrea 2012 年 5 月 22 日
Converting all NaNs to zero in an image is my problem.

採用された回答

Image Analyst
Image Analyst 2012 年 5 月 22 日
yourImageArray(isnan(yourImageArray)) = 0;
  1 件のコメント
Andrea
Andrea 2012 年 5 月 22 日
Thanks a lot, it worked.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by