How to binarize a signal?

조회 수: 9 (최근 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.

댓글을 달려면 로그인하십시오.

카테고리

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