Borrar filtros
Borrar filtros

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

9 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Sam Chak
Sam Chak el 26 de Mayo de 2022
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 comentarios
Akash Vyas
Akash Vyas el 29 de Mayo de 2022
coeff is not working in this case, since eqn is
and I want to find M matrix, but coeff is giving me

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by