How to Solve matrix symbolically?

1 回表示 (過去 30 日間)
thomas ponnet
thomas ponnet 2022 年 5 月 18 日
回答済み: Torsten 2022 年 5 月 18 日
Is it possible to solve matrix symbolically in matlab; for example;
Thank you in advance

回答 (1 件)

Torsten
Torsten 2022 年 5 月 18 日
It can solve for scalars - and since both expressions are linear in the matrices, the scalar and the matrix solution coincide.
syms x0 x1 x2 m k p
eqn1 = m*x1*p^2+2*k*(x1-x0)+2*k*(x1-x2)==0;
eqn2 = m*x2*p^2+2*k*(x2-x1)==0;
sol = solve([eqn1,eqn2],[x1,x2])
sol.x1
sol.x2

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by