how to display an output on a plot itself?
Mostra commenti meno recenti
Hi friends,
for this code:
x = linspace(-5,2);
y = -x-3;
z = 2*x
figure(1)
plot(x, y)
hold on
plot(x, z)
legend('x','y','location','best')
ix = interp1(y-z,x,0)
How can I cahnge this code and what coding line I should add so the solution (intersection point of y and z function, i.e., ix = -1) be displayed on the plot itself in a box?
Thank you
Risposta accettata
Più risposte (1)
Categorie
Scopri di più su Graphics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
