How to find a symbolic derivative?
2 次查看(过去 30 天)
显示 更早的评论
Assume you are writing a complex function - in my case, to find the equations of motion of a coupled drives system (CE108).
Is there a way to differentiate a symbolic variable (say, x) so that you get its symbolic derivative (in our case, dx)?
Example:
syms x, m
T = 0.5*m*x^2
y = SymbolicDerivative(T,x); %is there something like this
y = m*dx % that gives this?
Any custom made functions or any prebuilt ones you know?
Edit:
The function diff doesn't help, since it differentiates x to 1, while I am looking for something that instead derivates to dx
0 个评论
回答(1 个)
另请参阅
类别
在 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!