MATLAB: How to do segmentation on ECG signal for feature extraction

ecgsegmentation

I have a 1-minute ECG signal. How do I segment it into 10s? The Fs is 250Hz
thank you in advanced!

Best Answer

Use the Signal Processing Toolbox buffer function.
Calculating ‘n’ is straightforward:
n = 10 * 250
producing:
n =
2500
So 10 seconds of a signal sampled at 250 Hz is 2500 samples.