Delete all values except the max value
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dion Theunissen
el 1 de Mzo. de 2021
Comentada: Dion Theunissen
el 1 de Mzo. de 2021
Hi,
I have a 10x10 matrix Y. Now i want to make all elements 0 except the highes value of a row. So for example I have a matrix:
A = [3,10,8
4,8,1]
I want
B = [0,10,0
0,8,0]
Thanks
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!