How to Segment EMG data into time intervals

조회 수: 17 (최근 30일)
Ryan Chhiba
Ryan Chhiba 2021년 2월 25일
댓글: Star Strider 2021년 2월 25일
I have 2 minutes of filtered data that needs to be segmented into 20msec intervals, how would I go about doing that? It was collected at 2048 Hz and there is a total of 245762 data points.

채택된 답변

Star Strider
Star Strider 2021년 2월 25일
편집: Star Strider 2021년 2월 25일
One option is the Signal Processing Toolbox buffer function.
It uses samples as one of its arguments, however that is straightforward to calculate:
Fs = 2048; % Sampling Frequency (samples/sec)
segment = 0.02; % Segments (20 ms)
Samples = round(Fs * segment); % Sample Length
I use round here, however fix, floor or ceil would also work, depending on what you want.
  댓글 수: 4
Ryan Chhiba
Ryan Chhiba 2021년 2월 25일
Okay, that makes more sense thank you!
Star Strider
Star Strider 2021년 2월 25일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by