symbolic derivative with respect to time

62 views (last 30 days)
hello everybody
Im trying to take derivative from an equation and i need to have symbolic derivative of my terms with respect to time for example I want to write :
sin(x)
and get
I`ve already tried functinal derivative and diff commends, maybe I didn`t used them in correct way but they didn`t work that way. anyway please let me know if there is a way to do this kind of derivative in matlab.

Accepted Answer

KSSV
KSSV on 21 Aug 2019
syms x(t)
f = sin(x(t))
diff(f,t)

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!