📄 ch3example11prg1.m
字号:
% ch3example11prg1.m
t=-1: 0.01 :10 ; % 计算时间范围
f_t=exp(-t).*(t>0);
subplot(3,1,1);plot(t,f_t); % 时域波形
axis([-1 10 -0.1 1.1]); xlabel('time (sec)');
w=-40: 0.1 : 40; % 计算角频率范围
F_w=1./(1+j*w); % 频谱理论结果
subplot(3,1,2);plot(w, abs(F_w)); % 频域幅度谱
axis([-40 40 0 1.1]);xlabel('freq (rad/s)');
subplot(3,1,3);plot(w, angle(F_w)); % 频域相位谱
axis([-40 40 -pi/2 pi/2]);xlabel('freq (rad/s)');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -