Hi all,
I am trying to get get a continuous line to pass through the two scatter points in my MatLab code. I have currently joined to the two points together but I need the line to continue so I can get a point of intersection with the line and the curve.
Lr=(0:0.02:1.4);Kr=(1-0.14.*Lr.^2).*(0.3 + 0.7.*exp(-0.65*Lr.^6));%SteelA
Lr1=0;Lr2=0.7356;Kr1=0.01048;Kr2=0.7333;plot(Lr,Kr,'LineWidth',3);legend('Limit');hold on;title('Failure Assessment Diagram (FAD) for Steel A');xlabel('Lr');ylabel('Kr');hold on;scatter(Lr1,Kr1,'*','r')hold on;scatter(Lr2,Kr2,'*','g')hold on;plot([Lr1 Lr2],[Kr1 Kr2])grid on;legend ('R6 Kr curve','Lr(s)=0, Kr(s)(Steel A)', 'Lr(p), Kr(p+s)(Steel A)')
Best Answer