How to binarize a signal?

9 visualizaciones (últimos 30 días)
Muhammad Mazhar Saeed Butt
Muhammad Mazhar Saeed Butt el 6 de Abr. de 2018
Comentada: Muhammad Mazhar Saeed Butt el 6 de Abr. de 2018
How a signal can be binarize?

Respuestas (1)

Andrew Davies
Andrew Davies el 6 de Abr. de 2018
Editada: Andrew Davies el 6 de Abr. de 2018
Depends on the criteria you want to use to create your binary signal, but simply using a comparison operator on an array works. For example to use a threshold (0.5 here) and have 1 above and 0 otherwise:
s = rand(1,10)
b = s > 0.5

Categorías

Más información sobre Spectral Measurements 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!

Translated by