How can i use MinPeakDistance of Findpeaks?

36 visualizzazioni (ultimi 30 giorni)
Miriam zinnanti
Miriam zinnanti il 4 Lug 2019
Risposto: Star Strider il 4 Lug 2019
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 Commento
Shashank Sharma
Shashank Sharma il 4 Lug 2019
Is it possible for you to share the code ?
It is quite difficult to pinpoint the reason for the error without the code.

Accedi per commentare.

Risposte (1)

Star Strider
Star Strider il 4 Lug 2019
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.

Community Treasure Hunt

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

Start Hunting!

Translated by