How to judge the relatively stable section in the curve

조회 수: 1 (최근 30일)
Lay Zhou
Lay Zhou 2022년 1월 21일
댓글: Jon 2022년 1월 21일
This is a curve. The relatively stable part in the red box is what I need. How can I automatically judge and recognize it.Can you give a simple automatic judgment code?
  댓글 수: 4
Jon
Jon 2022년 1월 21일
편집: Jon 2022년 1월 21일
Here is a whole paper on the topic, or at least a closely related one https://www.r3eda.com/wp-content/uploads/2019/05/r3eda-site-SSTSID-Tutorial-2019-05-08.pdf
Jon
Jon 2022년 1월 21일
And here is another, which also seem to closely address the issue you have

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

답변 (1개)

Matt J
Matt J 2022년 1월 21일
편집: Matt J 2022년 1월 21일
One possibility might be to look at the local span seminorm (max-min) over a sliding window.
window=50;
lookahead = movmax(curve,0,window)-movmin(curve,0,window)<=tolerance;
lookbehind = movmax(curve,window,0)-movmin(curve,window,0)<=tolerance;
start=find(lookahead,1,'first'); %start of stable interval
stop=find(lookbehind,1,'last'); %end of stable interval.

Community Treasure Hunt

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

Start Hunting!

Translated by