How can I substitute all zeros of a matrix with minimum value of the same matrix?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Et
el 3 de Sept. de 2015
Comentada: Rena Berman
el 12 de Oct. de 2020
How can I substitute all zeros of a matrix with minimum value of the same matrix?
2 comentarios
Stephen23
el 14 de Jun. de 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?
Respuesta aceptada
Purushottama Rao
el 3 de Sept. de 2015
a(a==0)=min(a(a~=0))
3 comentarios
Star Strider
el 3 de Sept. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!