How can i use MinPeakDistance of Findpeaks?

조회 수: 15 (최근 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 CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by