Missing points before and after the R peaks
1 visualización (últimos 30 días)
I have a signal which I want to segment in heartbeats. I have the location of the R peaks and want to create a sliding window which takes 100 points before and 100 points after each peak, but before the first beat are just 78 points and after the last peak are also less than 100.
How can I avoid those peaks and just select the beats that have enough points before an after the R-peak?
Rik el 9 de Feb. de 2021
Something like this is what I meant:
if ind(1)<1 || ind(end)>numel(ECG), continue, end