Filter löschen
Filter löschen

How to Segment EMG data into time intervals

8 Ansichten (letzte 30 Tage)
Ryan Chhiba
Ryan Chhiba am 25 Feb. 2021
Kommentiert: Star Strider am 25 Feb. 2021
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.

Akzeptierte Antwort

Star Strider
Star Strider am 25 Feb. 2021
Bearbeitet: Star Strider am 25 Feb. 2021
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 Kommentare
Ryan Chhiba
Ryan Chhiba am 25 Feb. 2021
Okay, that makes more sense thank you!
Star Strider
Star Strider am 25 Feb. 2021
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Biomedical Signal Processing finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by