replace minimum value of each column with nan
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Leela Sai Krishna
el 18 de Mzo. de 2019
Comentada: madhan ravi
el 18 de Mzo. de 2019
i have a 10*10 matrix.
How to replace the minimum value from each column with nans.
ex; [10,5
2,8
8,1];
the desired out put should be like
[10,5
nan,8
8,nan];
thanks
0 comentarios
Respuesta aceptada
madhan ravi
el 18 de Mzo. de 2019
Editada: madhan ravi
el 18 de Mzo. de 2019
M(M==min(M))=nan % where M is your matrix
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!