Tatro Homework 5Matlab A103 9ed Given the following set of e
Solution
type the following matlab code in matlab editor and run we will get required result for A1.03_09ed
% For the first problem A1.03_09ed
 clc
 % let the coeficient matrix for currents as A
 A=[13-14i -12+16i 0;
 -12+16i 13-13i 39;
 -1 1 1];
 % let B be the matrix having coeficients right side of equations
 B=[150;0;0];
 %let X be the matrix having unknown currents I1, I2 and Ix
 X=inv(A)*B
matlab result from command window is as follows
X =
-26.0000 -52.0000i
 -24.0000 -58.0000i
 -2.0000 + 6.0000i
type the following matlab code in matlab editor and run we will get required result for A1.09_6ed
% for the problem A1.09_6ed
 % let the coeficient matrix for voltages as C
 C=[(1/40i)+(1/40)+(1/60) -1/60;
 -1/60 (1/60)+(1/20i)];
 % let D be the matrix having coeficients right side of equations
 D=[100/(40i);0];
%let Y be the matrix having unknown currents V1, V0
 Y=inv(C)*D
matlab result from matlab command window
Y =
30.0000 -40.0000i
 15.0000 + 5.0000i

