How do I obtain a certain peak from a repeating pattern?

조회 수: 5 (최근 30일)
Alvin Lim
Alvin Lim 2017년 11월 9일
Hi, x is my signal data and t is my time. I'm trying to locate the first peak of every cycle so that I can segment them. I used the code below but it does not seem robust enough as sometimes it detects unwanted peaks. [pks,locs] =findpeaks(x,t,'MinPeakDistance',500,'MinPeakHeight',165,'MinPeakWidth',100);
Is there a more efficient or elegant way of doing it? What I want are the points that is in the picture below:
Thank you!

답변 (0개)

카테고리

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