How to filter data that detects peaks or irregularities?

조회 수: 35 (최근 30일)
Mariana
Mariana 2020년 1월 18일
댓글: Image Analyst 2020년 1월 18일
I am trying to build a code that detects these peaks. This graph represents the change in position in time. What I am doing is read the distance timestep by timestep.
I compare the new distance minus the old distance, if this values difference is higher than 5 meters I assume theres a peak. The problem is that each dataset have undefined number of peaks and undefined number of green datasets to save.
How can I solve this?

답변 (1개)

Star Strider
Star Strider 2020년 1월 18일
Several functions already exist to do that, among which are findpeaks, islocalmax, ischange, and others.
  댓글 수: 7
Star Strider
Star Strider 2020년 1월 18일
Do you have R2017b or later?
Note: No data to analyse.
Image Analyst
Image Analyst 2020년 1월 18일
Mariana, make it easy for people to help you, not hard. Attach your data in a .mat file with the paper clip icon after you read this link.

댓글을 달려면 로그인하십시오.

카테고리

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