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!