How to find the time and partial derivative?
1 次查看(过去 30 天)
显示 更早的评论
Hello!
I have this:

How to represent the above in matlab in order to find the partial derivative w.r.t. q1_dot, that is the below

And after that i want to find the time derivative from the above.

Thanks in advance
8 个评论
Walter Roberson
2020-12-22
syms q1(t) q2(t) l1 l2 m I
K = 1/2*m*diff(q1(t),t)^2+1/2*(m*l2^2+I)*diff(q2(t),t)^2-m*diff(q1(t),t)*l2*sin(q2)*diff(q2(t),t)
syms Q1_dot
Ks = subs(K(t), diff(q1), Q1_dot)
dK_q1_dot = diff(Ks, Q1_dot)
dK_q1_dot_dt = diff(dK_q1_dot, t)
采纳的回答
Alan Stevens
2020-12-22
You don't really need the power of MATLAB here; elementary calculus will do:

更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!