How to put values to zero within a specified range?

Respuestas (1)

Amit
Amit el 6 de En. de 2015
Lets say your data variable is A then:
A(A>-0.5 & A < 0.5) = 0;

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Sam
el 6 de En. de 2015

Respondida:

el 6 de En. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by