Finding the intersection of a function with its derivative

조회 수: 5 (최근 30일)
Sebastian Ciuban
Sebastian Ciuban 2013년 12월 15일
댓글: Sebastian Ciuban 2013년 12월 15일
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?

채택된 답변

Wayne King
Wayne King 2013년 12월 15일
편집: Wayne King 2013년 12월 15일
How about:
syms x
f=2*sin(log(x)).^2;
g=diff(f);
solve(f-g) % or solve(f==g)
  댓글 수: 3
Sebastian Ciuban
Sebastian Ciuban 2013년 12월 15일
I have tried that but I wasn't sure it was correct :)
Sebastian Ciuban
Sebastian Ciuban 2013년 12월 15일
That is the thing that I want to know :). The value of all points where those 2 curves intersect

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by