?? pulse.m
字號:
function w = pulse(w,t,tbegin,tend)
% FILE: PULSE.M
% CALL: w = pulse(w,t,tbegin,tend)
% This function creates a square pulse.
% t = Input vector that corresponds to the discrete time values.
% w = Input vector that corresponds to the waveform.
% tbegin = defines the left edge of the pulse.
% tend = defines the right edge of the pulse.
i = length(t);
for (i = 1:length(t))
if (t(i) >= tbegin & t(i) <= tend)
w(i) = 1;
end;
end;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -