i need your help, too. (H1=0.25, B=0.58, z1 and z2 are changing between 0.1 and 1)
H1=input('H1 degerini giriniz:');
B=input('B degerini giriniz:');
z=-((1-B)/H1):0.1:B/H1;
FA=-H1*z.^2+z.*B;
FO=z.*[(1-B)+z.*H1];
plot(FA,FO);
hold on
z1=input('kritik frenleme oranini giriniz:');
line([0 z1],[z1 0]);
z2=input('yol sartini giriniz:');
line([0 z2],[z2 0]);
this is from an m-file. i want to plot one more line that starts at [0 0] and ends at the intersection point of curve and line(z2). but i want this line to change when the other values change. because the intersection point changes for all the different values of z2. I hope you can do that. thank you.