Filter löschen
Filter löschen

Removing drift from EMG signal

13 Ansichten (letzte 30 Tage)
nigel moos
nigel moos am 13 Apr. 2022
Beantwortet: Chunru am 14 Apr. 2022
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 Kommentar
Star Strider
Star Strider am 14 Apr. 2022
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chunru
Chunru am 14 Apr. 2022
%% 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')

Community Treasure Hunt

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

Start Hunting!

Translated by