Derivate an expression with time

조회 수: 2 (최근 30일)
Anis Frej
Anis Frej 2020년 4월 18일
댓글: Anis Frej 2020년 4월 18일
Good Morning,
My problem is I have an equation depends on theta and I don't have an expression of theta (which is the variable in the equation), and theta depends on t and i like derivate my equation with t.
For example my equation is as follows : f (t) = a * cos (theta)
Where theta = theta (t) And I would like to have a result in this style : f '(t) = - a * (theta)' * sin(theta)
Thank you.

채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 18일
syms a theta(t) theta_prime f_prime
f(t) = a * cos(theta);
dtheta = diff(theta,t);
df = diff(f,t);
f_prime == subs(df, dtheta, theta_prime)
  댓글 수: 1
Anis Frej
Anis Frej 2020년 4월 18일
Think you verry much ;)

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

추가 답변 (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