How to binarize a signal?

9 次查看(过去 30 天)
How a signal can be binarize?

回答(1 个)

Andrew Davies
Andrew Davies 2018-4-6
编辑:Andrew Davies 2018-4-6
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

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by