How to binarize a signal?

9 vues (au cours des 30 derniers jours)
Muhammad Mazhar Saeed Butt
How a signal can be binarize?

Réponses (1)

Andrew Davies
Andrew Davies le 6 Avr 2018
Modifié(e) : Andrew Davies le 6 Avr 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
  1 commentaire
Muhammad Mazhar Saeed Butt
Thanks Andrew for answering.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by