How to find the changing point in figure?

3 次查看(过去 30 天)
Dear,
I have the data (a simple script is attached here for the plotting).
I want to find where it starts to change (slope of the line). I.e. I want to know the point of yielding in line. As you can see from the image, it is linear up to some point, but later the slope starts to change. How can I find the first changing point (just before a new slope) in my data,
Thanks for your help.
Regards,
load test12F.txt;
load test12D.txt;
D= test12D(:,3);
M= test12F(:,3)
figure; plot(D,M)

回答(1 个)

Steven Lord
Steven Lord 2021-11-18
Take a look at the ischange function.

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by