How to calculate detivative of a function with respect to another function
1 回表示 (過去 30 日間)
古いコメントを表示
Hi! I want to calculate the derivative below in matlab

Have anyone any idea?
0 件のコメント
採用された回答
madhan ravi
2020 年 5 月 31 日
編集済み: madhan ravi
2020 年 5 月 31 日
syms u x
subs(diff(u^2 - 1), u, cos(x))
その他の回答 (1 件)
Alan Stevens
2020 年 5 月 31 日
Surely you don't need to do this in Matlab!
Just set u = cos(x), so you have d/du(u^2 - 1) = 2u = 2cos(x)
0 件のコメント
参考
カテゴリ
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!