필터 지우기
필터 지우기

Finding a Signal from an noisy signal

조회 수: 3 (최근 30일)
Rohan  Mehta
Rohan Mehta 2019년 9월 2일
댓글: Image Analyst 2019년 9월 3일
I am having an signal as displayed in the image the red signal is the input and the blue one is outut as we can see that we have six peaks obtained in the input (Red) signal and the same should be present in the output (Blue) signal. I want to find the the signals in the blue samples. Is there any kind of filter or code which I can apply to find the signals.
Please note that signals attached in the image are created using an CSV file which contains the amplitudes of the signals.

채택된 답변

Image Analyst
Image Analyst 2019년 9월 2일
Simply use masking:
mask = redSignal > 0.1; % Logical index (mask) of where the red signal is higher than 0.1.
% Now replace those bad red signal locations with the good blue signal:
redSignal(mask) = blueSignal(mask);
  댓글 수: 2
Rohan  Mehta
Rohan Mehta 2019년 9월 3일
편집: Rohan Mehta 2019년 9월 3일
Can you just explain what this masking of signals does ?
Image Analyst
Image Analyst 2019년 9월 3일
Not sure what additional I can say. The green comment above say it all. The mask is where the red signal is higher than 0.1 (bad signal locations/indexes). And then I replace those bad red signal locations with the values from the good blue signal. Read it again and tell me where you see some ambiguity or uncertainty in what it says.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by