How can i use MinPeakDistance of Findpeaks?
12 次查看(过去 30 天)
显示 更早的评论
Hi everyone, I have a problem using the "findpeaks" command. my goal is to find the peaks of the Ecg signal using this command: in particular, to avoid detecting false peaks I have imposed a minimum distance between them through an input value associated with MinPeakDistance (findpeaks input). The value entered is the one recommended in articles for ECG signal. The problem is that Matlab detects the following error:
"Error using findpeaks. Expected MinPeakDistance to be a scalar with value < 0.00390625".
I don't understand why Matlab tells me this value, and if there are limitations to use MinPeakDistance. Is there anyone who can help me or give me directions? Thank you in advance.
1 个评论
Shashank Sharma
2019-7-4
Is it possible for you to share the code ?
It is quite difficult to pinpoint the reason for the error without the code.
回答(1 个)
Star Strider
2019-7-4
For a normal EKG, it is easiest to use the 'MinPeakHeight' name-value pair, rather than 'MinPeakDistance', since you need to account for arrhythmias (including the Hering-Breuer reflex and other normal variations in heart rate), and 'MinPeakDistance' will prevent you from detecting them.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!