How to Solve matrix symbolically?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Is it possible to solve matrix symbolically in matlab; for example;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1002945/image.png)
Thank you in advance
0 Kommentare
Antworten (1)
Torsten
am 18 Mai 2022
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!