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 view (last 30 days)
Show older comments
Abdul Rof V on 28 Jun 2022
Answered: Balaji Udayagiri on 28 Jun 2022
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
Balaji Udayagiri on 28 Jun 2022
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);
You can refer to this documentation to find more information on how to solve system linear equations.
Find more on Calculus 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!