Question about Symbolic Differentiation
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
If I write the following code:
syms x t
answer = diff(x,t)
then answer = 0.
Is it possible to declare that x is some unknown function of t, so that diff(x,t) will return dxdt instead of 0?
(I'm asking because I'm trying to use MATLAB to automatically derive differential equations for certain user input for a specific application.)
Thank you,
Kevin
0 件のコメント
採用された回答
Walter Roberson
2013 年 2 月 13 日
If you have a fairly new version of MATLAB (R2011b I think was the first), then
syms x(t)
diff(x,t)
6 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!