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

回答 (1 件)

Balaji Udayagiri
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.

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by