derivative in syms
1 次查看(过去 30 天)
显示 更早的评论
If I am using syms, and i have the following
a = b * u
then da/dt = b * du/dt.
How do I get matlab to do this rather than just assume u is not a function of t and assign a value of 1?
0 个评论
采纳的回答
Walter Roberson
2011-10-12
You tell MATLAB that u is a function of t.
a = subs(a,'u','u(t)');
diff(a,'t')
0 个评论
更多回答(1 个)
William
2011-10-12
It looks like you're tying a differential equation
try this link
2 个评论
Bjorn Gustavsson
2011-10-12
Look at 'dsolve' then, that should be what you want to use for solving DE analytically.
另请参阅
类别
在 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!