How to collect and store the coefficient of symbolic differential equation ?
Show older comments
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.
Answers (1)
Sam Chak
on 26 May 2022
0 votes
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 Comments
Akash Vyas
on 29 May 2022
Walter Roberson
on 29 May 2022
coeffs(rhs(Equation), thetadotdot)
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
