Respuesta :
The following code can be used to tabulate and plot the percent regulation and efficiency of a n+350-KVA 2300+n - 230+n; volt, 60-hz transformer with a core loss of m+0.56, a resistance of m+1.33 and a leakage reactance of m+5.57.
What is code?
Code is a set of instructions or statements written in a programming language that, when executed, tells a computer what to do. It is also a way of expressing logic and ideas in a way that a machine can understand and execute.
Code is written in specific programming languages, which are designed to allow coders to express themselves in a way that a computer can understand. Code is the basis of all computer applications, from web browsers to mobile apps.
It is used to create software, such as applications, operating systems, and websites. Code is written by software developers, who are responsible for taking ideas and turning them into computer programs. Code is typically tested by software testers, who make sure that the code works properly and that it meets the requirements set by the customer.
%% Define Parameters
V_p = 2300+n; % Primary voltage
V_s = 230+n; % Secondary voltage
P_rated = 350; % Rated power
R_t = m+1.33; % Resistance
X_m = m+5.57; % Leakage reactance
P_coreloss = m+0.56; % Core loss
%% Calculate parameters
V_p_rms = V_p/sqrt(3); % Primary RMS voltage
V_s_rms = V_s/sqrt(3); % Secondary RMS voltage
%% Tabulate and plot
angles = linspace(0,360,100); % Angles between 0.5 lagging and 0.5 leading
Eff = zeros(1,length(angles));
Reg = zeros(1,length(angles));
for i = 1:length(angles)
PF = cosd(angles(i));
I_s = P_rated/(V_s_rms*PF);
I_p = I_s*V_s_rms/V_p_rms;
P_cu_loss = (I_s^2)*R_t + (I_p^2)*R_t;
P_total_loss = P_cu_loss + P_coreloss;
Eff(i) = P_rated/((P_rated + P_total_loss)/100);
Reg(i) = (V_s_rms - (V_p_rms*PF))/(V_p_rms*PF)*100;
end
% Tabulate
Table = table(angles', Eff', Reg', 'VariableNames', {'Angle' 'Efficiency' 'Regulation'});
disp(Table);
% Plot
figure
plot(angles, Eff, 'b')
hold on
plot(angles, Reg, 'r')
xlabel('Power Factor Angle (degrees)')
ylabel('Percentage (%)')
legend('Efficiency', 'Regulation')
to learn more about code
https://brainly.com/question/29433728
#SJP4