How to put values to zero within a specified range?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I've got a datatype 31x1 double. I want to put the values between -0.5 and + 0.5 to zero. How do I do this?
0 comentarios
Respuestas (1)
Amit
el 6 de En. de 2015
Lets say your data variable is A then:
A(A>-0.5 & A < 0.5) = 0;
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown 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!