ac_phase_controller.m
来自「电力系统书本的范例 想学好电力系统很有帮助 欢迎大家来下载」· M 代码 · 共 17 行
M
17 行
function volts = ac_phase_controller(wt,deg)
% Function to simulate the output of the positive half
% cycle of an ac phase angle controller with a peak
% voltage of 120 * SQRT(2) = 170 V.
% wt = Phase in radians (=omega x time)
% deg = Firing angle in degrees
% Degrees to radians conversion factor
deg2rad = pi / 180;
% Simulate the output of the phase angle controller.
if wt > deg * deg2rad;
volts = 170 * sin(wt);
else
volts = 0;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?