Finding the intersection of a function with its derivative
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sebastian Ciuban
am 15 Dez. 2013
Kommentiert: Sebastian Ciuban
am 15 Dez. 2013
I have this code:
x=sym('x'); f=2*sin(log(x)).^2; g=diff(f); h1=ezplot(f); set(h1,'Color','red') hold on ezplot(g) grid on
Now, how I can find the value of the points where they intersect?
0 Kommentare
Akzeptierte Antwort
Wayne King
am 15 Dez. 2013
Bearbeitet: Wayne King
am 15 Dez. 2013
How about:
syms x
f=2*sin(log(x)).^2;
g=diff(f);
solve(f-g) % or solve(f==g)
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!