derivative of a function of two variables
古いコメントを表示
Hello,
How can I get such a derivative in Matlab-Symbolic Toolbox ?
Differentiation according to two variables q1 and q2.
y=L1*cos(q1)+L2*cos(q2)
y´=-L1*sin(q1)-L2*cos(q2)
There is only this alternative?
z´=diff(y,q1)+diff(y,q2)
Thank you very much
1 件のコメント
onur karakurt
2018 年 10 月 17 日
Thanks, but this is symbolic derivative, Can you give example numerical derivative with the function of y=L1*cos(q1)+L2*cos(q2)
採用された回答
その他の回答 (1 件)
Babak
2013 年 2 月 21 日
y = L1*cos(q1)+L2*cos(q2)
yp =-L1*sin(q1)-L2*cos(q2)
Do you want to take the derivative with respect to both independent parameters? if so, do this:
dy_over_dq1_dq2 = diff(diff(y,q1),q2)
カテゴリ
ヘルプ センター および File Exchange で Numeric Solvers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!