📄 ac_phase_controller.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -