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에서 Number Theory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!