How to locate last peak in data?

조회 수: 4 (최근 30일)
Maria Y
Maria Y 2019년 3월 21일
답변: Star Strider 2019년 3월 21일
Hello,
I have a set of data with a group of artifacts at the start and end of the data (see below). What I would like to do is find the last peak in the end artifacts, and remove everything after that point.
I wasn't able to find any documentation in findpeaks about finding the first/last peak and I can't use specific indices because they change with every data set.
If anyone could offer any advice it would be much appreciated.
Thanks in advanced!

답변 (1개)

Star Strider
Star Strider 2019년 3월 21일
Use the findpeaks (link) function, most likely with the 'MinPeakHeight' name-value pair. Then use the second ‘locs’ output (an an index) to determine the peak you want to remove. You can also use the mink (link) and maxk functions to help you identify these, if there are more than one.

카테고리

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