How to solve Matrix that consists of a variable

10 ビュー (過去 30 日間)
KEDI YAN
KEDI YAN 2020 年 7 月 15 日
コメント済み: Star Strider 2020 年 7 月 16 日
I have a Matrix like below
In this matrix, only the Z23 and Z32 are unknown, and Z23 = Z32. I had mannuly solved it and got the equation shown below
I was wondering if MATLAB can help me do such a calculation?

採用された回答

Star Strider
Star Strider 2020 年 7 月 15 日
See if the linsolve function will do what you want.
syms Vs
Iv = sym('I',[4 1]);
Zm = sym('Z', [4 4]);
Zm(1,[3 4]) = 0;
Zm(2,4) = 0;
Zm(3,1) = 0;
Zm(4,[1 2]) = 0;
Vv = [Vs; 0;0;0];
RHS = Zm*Iv;
S = linsolve(Zm, Vv)
.
  4 件のコメント
KEDI YAN
KEDI YAN 2020 年 7 月 16 日
Cool cool. This is exactly what I need! I appreciate it.
Star Strider
Star Strider 2020 年 7 月 16 日
As always, my pleasure!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by