Objective 4
Objective 4
Soln :
, Z2 = 6 + j12
and Z3 = 30 - j30
. Find the power absorbed by each load and the total complex power using Matlab
%% Objective 4 % Created by ROHAN SHARMA on June 7, 2011 for PSMS LAB Vm = input('Enter voltage peak amplitude V = '); thetav = input('Enter voltage phase angle in degree = '); n = input('Enter the number of Impedances = '); for temp = 1:n Z(temp) = input(['Enter the load impedance Z',num2str(temp),' in Cartesian form = ']); S(temp)=(Vm^2)/conj(Z(temp)); disp(['Complex power of Z',num2str(temp),' = ',num2str(S(temp))]) end disp(['Total Complex Power = ',num2str(sum(S))])