Line interception in stress strain graph

13 次查看(过去 30 天)
Hello,
I have plotted stress vs strain and would like to get the yield stress at 0,2%strain. So I have calculated the slope from the linear part in the beginning of my plot and I plot a line that starts from 0,2 on my x-axis. This line intercepts the initial plot and I would like to know the value of the y-axis at this intercept.
Is there a graphical tool for this or what should I do?
Thank you.

回答(1 个)

Star Strider
Star Strider 2014-12-14
编辑:Star Strider 2014-12-14
We don’t have your data, so I can only outline the approach I would take.
If you calculated the line from the same x and y values of the stress-strain curve, subtract the y value of the line from the y value of the stress strain curve for the x values common to both. The y value of the line corresponding to the x coordinate of the ‘last positive’ value of that vector is the one you want.
This illustrates the approach:
x = 0:0.1:2; % Create Data
y = -(x-5).^2 + 25; % Create Data
b = polyfit(x(1:15),y(1:15),1); % Fit Line
yf = polyval(b,x); % Evaluate Line
dif = y-yf; % Subtract Data From Line
xn = find(dif > 0, 1, 'last'); % Find Index Of Last +ve
figure(1)
plot(x,y) % Plot Data
hold on
plot(x,yf) % Plot Line
plot(x(xn),y(xn),'+r') % Plot Point
hold off
grid

类别

Help CenterFile Exchange 中查找有关 Stress and Strain 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by