How to find the time and partial derivative?

조회 수: 1 (최근 30일)
RoBoTBoY
RoBoTBoY 2020년 12월 22일
댓글: RoBoTBoY 2020년 12월 22일
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
RoBoTBoY
RoBoTBoY 2020년 12월 22일
Maybe this?
Walter Roberson
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)
K(t) = 
syms Q1_dot
Ks = subs(K(t), diff(q1), Q1_dot)
Ks = 
dK_q1_dot = diff(Ks, Q1_dot)
dK_q1_dot = 
dK_q1_dot_dt = diff(dK_q1_dot, t)
dK_q1_dot_dt = 

댓글을 달려면 로그인하십시오.

채택된 답변

Alan Stevens
Alan Stevens 2020년 12월 22일
You don't really need the power of MATLAB here; elementary calculus will do:
  댓글 수: 1
RoBoTBoY
RoBoTBoY 2020년 12월 22일
Yes indeed, but i want the power of MATLAB to verify my maths.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by