symbolically differentiating of a function not to be mixed with other constants
2 ビュー (過去 30 日間)
古いコメントを表示
Hi All
to derivate symbolically this equation :
p= c1*r +c2/r ;
the problem is that when you write : y=sym('y(t)') ;
then you can not define the function , to derivate and see the result , because it will only be like : diff(p(r), r) ;
but if I write the function as above , how can I make matlan know that r is the variable and the rest are just constants ?
0 件のコメント
採用された回答
A Jenkins
2014 年 12 月 8 日
syms r c1 c2
p=c1*r+c2/r
diff(p,r)
_________________
ans =
c1 - c2/r^2
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Special Values についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!