Anda di halaman 1dari 2

%Tugas Komputerisasi sistem tenaga listrik

%soal nomer 4.2


%Kelompok Merapi = Anugerah Ramadhan, Rhamdani L.P, Bagus Prabowo
% Program determines the nodal voltages
% given an admittance matrix Y and Voltage V(1)
% Initialize matrix Y and the Voltage V(1)
% matrix equation Y V = I
Y = [3 0 -2 0 0; 0 11 0 -11 0; -15 -6 31 0 0; 0 -1 -3 3 0; 0 0 0 0 1];
I = [12 -90 120 36 -48]';
% Solve for the nodal voltages
fprintf('Nodal voltages V(1), V(2), ...V(4) adalah \n')
V = inv(Y)*I
% total power
Vtotal = V(1)+V(2)+V(3)+V(4)

Anda mungkin juga menyukai