find slope sign change of emg signal
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
dear
i want to find slope sign change of emg signal.
how i do this?
Thank you
0 Commenti
Risposte (2)
KSSV
il 16 Ago 2019
If (t,x) is your time and signal.
dt = diff(t) ;
dx = diff(x) ;
slope = dx./dt ;
slope_sign = sign(slop) ;
Star Strider
il 18 Ago 2019
If ‘EMG’ is your (30000x4) signal matrix, the derivative (‘dEMG’) is:
[~,dEMG] = gradient(EMG);
Note that taking the derivative of a a ‘real world’ signal will significantly amplify the noise. It would be best for you to use a lowpass filter on your EMG signal matrix first, to eliminate high-frequency noise. If you have R2018a or later, use the lowpass function (or bandpass if you also want to eliminate d-c offset and low-frequency baseline drift). Otherwise, efficient filters are not difficult to design and implement in MATLAB.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!