A is a square block matrix of order S which not fixed. pi is a column matrix of order S. How to find the solutions of the system of equations: (pi)A=0, (pi)e=1, e column of 1s
1 次查看(过去 30 天)
显示 更早的评论
A is a square block matrix of order S which not fixed.Each block has order m π is a column(block) matrix of variables order S. How to find the solutions of the system of equations: πA=0, πe=1, where e is a column vector of 1's of appropriate order
0 个评论
回答(1 个)
Balaji Udayagiri
2022-6-28
Hi Abdul,
As per my understanding, you want to solve the system of linear equations, πA = 0, πe = 1. You can augment the e to the Matrix A, and solve the new set of equations using linsolve().
Here is an example code for your reference:
syms x y z
eqn1 = 2*x + y + z == 0;
eqn2 = -x + y - z == 0;
eqn3 = x + 2*y + 3*z == 0;
eqn4 = x + y + z == 1;
[A,B] = equationsToMatrix([eqn1, eqn2, eqn3, eqn4], [x, y, z]);
X = linsolve(A,B);
disp(X);
You can refer to this documentation to find more information on how to solve system linear equations.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!