MATLAB: Looking for a better way to detect peaks

beatsecgfindpeaksheartheartbeatMATLABpeaksthreshold

when using find peaks i get all the litlle peaks under 0.3 is there a way to detect only the 5 peaks? (without manually setting the threshold to be 0.3)

Best Answer

The other best option is likely the 'MinPeakDistance' value. Since you’re likely dealing with highly-filtered QRS complexes, and the rate seems to be regular at about 60 BPM, set 'MinPeakDistance' to about 80% of your sample rate.