필터 지우기
필터 지우기

find slope sign change of emg signal

조회 수: 16 (최근 30일)
Ali Asghar
Ali Asghar 2019년 8월 16일
답변: Star Strider 2019년 8월 18일
dear
i want to find slope sign change of emg signal.
how i do this?
Thank you

답변 (2개)

KSSV
KSSV 2019년 8월 16일
If (t,x) is your time and signal.
dt = diff(t) ;
dx = diff(x) ;
slope = dx./dt ;
slope_sign = sign(slop) ;
  댓글 수: 1
Ali Asghar
Ali Asghar 2019년 8월 18일
dear
my data signal is 30000x4
time is 1x30000
its show error : Matrix dimensions must agree.

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


Star Strider
Star Strider 2019년 8월 18일
Use the gradient function to produce results that are the same sizes as your data, not diff.
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.

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by