how to turn elements in matrix to 0?
Mostrar comentarios más antiguos
i have this matrix:

arround this shape the elements are close to zero (in a small values for example: xe-20-xe-10) is there a simple way to take the elements only around this shape and change them into zero?
1 comentario
Kobi
el 8 de Oct. de 2014
Respuestas (2)
Chad Greene
el 8 de Oct. de 2014
If you'd like to change all values in T that are less than some threshold (we'll call the threshold thresh), all you need is
T(T<thresh)=0;
2 comentarios
Kobi
el 8 de Oct. de 2014
Well, a threshold is subjective, even when applying complex statistical methods. You are going to have to select something. Even if you use a function, the choice is subjective.
I guess what I am trying to ask is how do you want to set that limit?
Chad Greene
el 8 de Oct. de 2014
0 votos
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!