?? test_halfwave.m
字號(hào):
% M-file: test_halfwave.m
% M-file to calculate the ripple on the output of a half-wave
% rectifier.
% First, generate the output of a half-wave rectifier
waveform = zeros(1,128);
for ii = 1:128
waveform(ii) = halfwave(ii*pi/64);
end
% Now calculate the ripple factor
r = ripple(waveform);
% Print out the result
string = ['The ripple is ' num2str(r) '%.'];
disp(string);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -