How can I substitute all zeros of a matrix with minimum value of the same matrix?

1 回表示 (過去 30 日間)
How can I substitute all zeros of a matrix with minimum value of the same matrix?
  2 件のコメント
Stephen23
Stephen23 2020 年 6 月 14 日
Original question by Hamed Absharii 3rd September 2015, retrieved from Google Cache:
"How can I substitute all zeros of a matrix with minimum value of the same matrix?"
How can I substitute all zeros of a matrix with minimum value of the same matrix?
Rena Berman
Rena Berman 2020 年 10 月 12 日
(Answers Dev) Restored edit

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

採用された回答

Purushottama Rao
Purushottama Rao 2015 年 9 月 3 日
 a(a==0)=min(a(a~=0))
  3 件のコメント
Star Strider
Star Strider 2015 年 9 月 3 日
@Purushottama Rao — Don’t worry about the ‘spam’ flag. It happens to us all. You correctly flagged it so someone would have discovered it when they checked the ‘Flagged Content’. I cleared them and cleared your flags as well.
Purushottama Rao
Purushottama Rao 2015 年 9 月 3 日
@Star Strider: Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by