How to binarize a signal?

8 ビュー (過去 30 日間)
Muhammad Mazhar Saeed Butt
Muhammad Mazhar Saeed Butt 2018 年 4 月 6 日
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
  1 件のコメント
Muhammad Mazhar Saeed Butt
Muhammad Mazhar Saeed Butt 2018 年 4 月 6 日
Thanks Andrew for answering.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by