How can I substitute all zeros of a matrix with minimum value of the same matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Et
am 3 Sep. 2015
Kommentiert: Rena Berman
am 12 Okt. 2020
How can I substitute all zeros of a matrix with minimum value of the same matrix?
2 Kommentare
Stephen23
am 14 Jun. 2020
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?
Akzeptierte Antwort
Purushottama Rao
am 3 Sep. 2015
a(a==0)=min(a(a~=0))
3 Kommentare
Star Strider
am 3 Sep. 2015
@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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!