MATLAB: Intersection point of yline

intersection pointMATLAB and Simulink Student Suite

Hi,
I have tried some diffrent metods, but so far without any luck. Is there a way to show the x,y coordinates of the intersection point of yline and the f1?
x=[-150:5:0, 0:5:100]
hold on
z=50
yline((z),'--r');
f1=[5E-08 -3E-05 -0.0058 1.0479 177.56]
y1=polyval(f1,x)
plot(x,y1)
grid on

Best Answer

x=[-150:5:0, 5:100];
INTERSECTION = interp1(y1,x,z)