How to solve Matrix that consists of a variable

3 vues (au cours des 30 derniers jours)
KEDI YAN
KEDI YAN le 15 Juil 2020
Commenté : Star Strider le 16 Juil 2020
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?

Réponse acceptée

Star Strider
Star Strider le 15 Juil 2020
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 commentaires
KEDI YAN
KEDI YAN le 16 Juil 2020
Cool cool. This is exactly what I need! I appreciate it.
Star Strider
Star Strider le 16 Juil 2020
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by