How to plot a function is equal to a constant?
Mostra commenti meno recenti
I am new to MATLAB and am trying to graph ln(x^2)=0.7 to find the roots graphically. I have tried to following.
x=-5:5;
y=log(x.^2)-0.7;
plot (x,y)
this gets me close but the graph isn't coming out right. I also tried to y=log(x.^2)=0.7 or y=log(x.^2)-0.7=0 but this doesn't work either. Any help is appreciated!
Risposta accettata
Più risposte (1)
John
il 11 Set 2014
0 voti
Categorie
Scopri di più su Line Plots 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!