How to remove the background noise from a signal?

조회 수: 4 (최근 30일)
Steven
Steven 2019년 11월 11일
편집: Steven 2019년 11월 14일
Hi. I have the following signal. I am mainly interested in getting the peaks of the red signal. So I want to remove the part (background noise whose data I have) within the blue box.
1. How can I do it?
2. If I want to remove the noise, can I simply subtract the original values in time domain? something like:
y = Signal (t) - Noise (t)
or I have to do it in freq domain?
Plot1 - Copy.jpg
Thanks

채택된 답변

Daniel M
Daniel M 2019년 11월 11일
Seems like you have determined what you want your threshold to be.
You can set those values to zero (or whatever the mean of your signal is), pretty easily:
x; % this is your data
xpeaks = x; % duplicate
thresh = 10; % or whatever it is
meanx = mean(x);
xpeaks(abs(x) <= threshold) = meanx;
% xpeaks will contain only the "peaks"
  댓글 수: 2
Steven
Steven 2019년 11월 14일
편집: Steven 2019년 11월 14일
Thank you.
So it is not needed to take both of them to freq domain and then subtract them?
Daniel M
Daniel M 2019년 11월 14일
That's another approach, but it was unnecessary in this case.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by