how to change matrix element from zero to 1
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hello i have one matrix 4 by 4 which only it has few zero element how can i say it check the element if less than one then change it to one ?
0 comentarios
Respuestas (1)
the cyclist
el 17 de Mayo de 2015
If A is your matrix,
A(A<1) = 1
Ver también
Categorías
Más información sobre Colorbar 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!