How to find the saturation point x value
조회 수: 19 (최근 30일)
이전 댓글 표시
I have two graphs for which I am trying to find the value at x when the y meets the saturation point. In one of those graph which is strictly non decreasing I can use findpeaks() and it gives me the satisfactory solution but that is also not helping because maybe the point is yet beyond the x-axis limit I have given (nopeakgraph attached). But the another graph has a peak point after which it starts decreasing only to get its saturation point later so findpeaks() is showing me result but that is of no use to me (peakgraph attached).
Please let me know if there is a function or a way we can find the x axis values as soon as y hits the saturation point which is when the slope becomes 0. I need to compare both the graphs as one of the graph hits saturation earlier than the other. Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290285/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290286/image.png)
댓글 수: 2
Guillaume
2020년 5월 4일
I think first you have to tell us what is your definition of 'saturation point'.
채택된 답변
David Hill
2020년 5월 4일
a=abs(diff(y));
xvalSat=x(find(a<1e-5,1));%whatever tolerance you want here (1e-5 or less)
댓글 수: 5
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!