Help with finding highs

조회 수: 1 (최근 30일)
Lev Mihailov
Lev Mihailov 2019년 8월 20일
댓글: Lev Mihailov 2019년 8월 21일
Hello! My signal goes smoothly then at some stage it rises sharply and for a long time keeps this tendency
I am trying to use the findpeaks function to find this indicator i.e. when the signal goes up but nothing works for me
Data=[20 21 20 21 21 90 92 93 90 93 90 59 30]
  댓글 수: 4
Adam
Adam 2019년 8월 20일
I don't know what you are doing with x and y. Data is a row vector as you showed it in the question so x and y would just be the first two elements, as scalars.
[peaks, locations] = findpeaks( Data );
would give you the peak values and their respective indices inito the Data matrix.
Lev Mihailov
Lev Mihailov 2019년 8월 20일
I'm just trying to get at least something. I try to do an automatic search for a single peak
Data=[20 21 20 21 21 90 92 93 90 93 90 59 30 102 30 21 22 23 21]
those. I need to get data 21 90 92, I can see one manually, but I would like to start this process in a cycle. value 102 is the outlier

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

답변 (1개)

Steven Lord
Steven Lord 2019년 8월 20일
Do you want to find a local maximum? If so see the islocalmax function.
Do you want to find a place where your data changes significantly? If so see the ischange function.
Do you want to find, clean, or remove the outliers? If so see the isoutlier, filloutliers, and/or rmoutliers functions.
All the functions I mentioned are in the Preprocessing Data section of the documentation. If none of them do exactly what you want, perhaps you can combine them with other data preprocessing functions to achieve your goal.
  댓글 수: 3
Steven Lord
Steven Lord 2019년 8월 20일
ischange was introduced in release R2017b. Are you using an earlier release?
Lev Mihailov
Lev Mihailov 2019년 8월 21일
I have 2017a

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

카테고리

Help CenterFile Exchange에서 Spectral Estimation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by