How can i use MinPeakDistance of Findpeaks?

40 ビュー (過去 30 日間)
Miriam zinnanti
Miriam zinnanti 2019 年 7 月 4 日
回答済み: Star Strider 2019 年 7 月 4 日
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
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
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.

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by