How to collect and store the coefficient of symbolic differential equation ?

조회 수: 8 (최근 30일)
Akash Vyas
Akash Vyas 2022년 5월 26일
댓글: Walter Roberson 2022년 5월 29일
I am trying to model dynamics of 3 link manipulator using EL method using symbolic eqn in matlab and now I want to collect the coefficient of theta_ddot, theta_dot, theta to make M matrix, C matrix, and h matrix.

답변 (1개)

Sam Chak
Sam Chak 2022년 5월 26일
Hi Akash,
You can try using coeffs and see if it works for you. Examples are shown in the link.
https://www.mathworks.com/help/symbolic/sym.coeffs.html
  댓글 수: 2
Akash Vyas
Akash Vyas 2022년 5월 29일
coeff is not working in this case, since eqn is
and I want to find M matrix, but coeff is giving me

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

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by