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 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Balaji Udayagiri
le 28 Juin 2022
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 commentaires
Voir également
Catégories
En savoir plus sur Number Theory dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!