フィルターのクリア

How to solve a linear system with component varying?

3 ビュー (過去 30 日間)
Jucimar Carpe
Jucimar Carpe 2018 年 7 月 21 日
コメント済み: Jucimar Carpe 2018 年 7 月 22 日
Hi all,
I have a 2x2 linear system where the 2x2 position has a imaginary number+variable. The the value from this variable "R" comes from another equation given by R=1.5*((1-S)./S) and S=-2:0.01:2. The system should look like this:
After that, i'll run another equation P=3*1.5*((1-S)./S)*abs(I2). I want to take the values from I2 to plot a graph by doing, plot(S,P).
Can someone help me how to solve this linear system? I've trying hard but no success.
Thans in advance!

採用された回答

Aquatris
Aquatris 2018 年 7 月 22 日
Here is one way to do it;
index = 0;
S = -2:0.01:2;
for i = 1:length(S)
index = index+1;
s_val = S(i);
R = 1.5*(1-s_val)/s_val;
y = [380/sqrt(3); 0];
A = [.45+.8i+25i -25i;-25i 1.5+1.5i+25i+R];
x = A\y;
I1(index) = x(1);
I2(index) = x(2);
P(index) = 3*1.5*((1-s_val)/s_val)*abs(I2(index));
end
plot(S,P)
  1 件のコメント
Jucimar Carpe
Jucimar Carpe 2018 年 7 月 22 日
Thank you very much, it worked!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSystems Of Linear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by