How to judge the relatively stable section in the curve
1 view (last 30 days)
Show older comments
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 Comments
Jon
on 21 Jan 2022
Edited: Jon
on 21 Jan 2022
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
on 21 Jan 2022
And here is another, which also seem to closely address the issue you have
Answers (1)
Matt J
on 21 Jan 2022
Edited: Matt J
on 21 Jan 2022
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!