Element change in a matrix
Mostrar comentarios más antiguos
Hello,
I would like to know if its is possible to subtitute elements in a matrix by conditions. Imagine a matrix in where there are number between 1-100, i want to set all value that are under 30 to 0, all between 30 and 75 to 1 and between 75 and 100 to 2, how do i do it? is that even possible? thank you
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 5 de Abr. de 2021
0 votos
Take a look at the discretize function.
Categorías
Más información sobre Choose and Parameterize Blocks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!