Derivate an expression with time
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!