How do I solve system of equations?

3 ビュー (過去 30 日間)
Musa Kasim AGCA
Musa Kasim AGCA 2020 年 2 月 29 日
コメント済み: darova 2020 年 2 月 29 日
eqn1 = a*H - 790*a*P1 + 1590*b*P1 - 2380*E == 0;
eqn2 = b*H - 793*a*P1 + 1593*b*P1 - 2386*E == 0;
a and b are the unknowns that I try to find.
H and P1 are 64*64 matrices.
E is the row vector 1*64.
E, H, and P1 are known.
How should I construct the solution ?
  1 件のコメント
darova
darova 2020 年 2 月 29 日
Can you explain more? What those matrices represent? TO find 2 variable you only need 2 equations but you have 128

サインインしてコメントする。

採用された回答

Are Mjaavatten
Are Mjaavatten 2020 年 2 月 29 日
If I understand you correctly, your system consist of 128 eqations. a and b are arrays of 64 unknowns each. You must then solve the system:
In Matlab:
x = [H-790*P1,1590*P1;-793*P1,H+1593*P1]\[2380*E;2386*E];
a = x(1:64);
b = x(65:128);
If this is a bit confusing, see the description of Matab's backslash operator.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by