필터 지우기
필터 지우기

Removing drift from EMG signal

조회 수: 12 (최근 30일)
nigel moos
nigel moos 2022년 4월 13일
답변: Chunru 2022년 4월 14일
i want to remove the drift from my emg signal that i obtained. i am using the following script
the original emg looks like this:
with the scipt above i get the following detrend:
u can see that the drift isnt completely removed, can anyone see what i am doing wrong or what i can change in my script to get the perfect result around y=0
thanks in advance!
  댓글 수: 1
Star Strider
Star Strider 2022년 4월 14일
One option woould be to calculate the fft of the signal to see where the low-frequency variations are, then using a highpass filter to pass everything above those frequencies. That should eliminate the baseline variations.
It will be necessary to experiment to determine the best cutoff frequency.

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

답변 (1개)

Chunru
Chunru 2022년 4월 14일
%% detrend
% Remove polynomial trend
t = 0:20;
x = 3*sin(t) + t;
y = detrend(x);
plot(t,x,t,y,t,x-y,':k')
legend('Input Data','Detrended Data','Trend','Location','northwest')

카테고리

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