📄 exa1_2.m
字号:
% exa 1-2_weight_unit_pulse_c.m for example 1-2
% weighted unit pulse response
clear all;
t1=-0.5:0.001:1;
K=3;
n1=length(t1);
u=zeros(1,n1);
t2=-0.5:0.001:0;
n2=length(t2);
u(n2)=K;
plot(t1,u)
axis([-0.5 1 0 3.2])
% exa1-3_weight_shift_unit_pulse_c.m for example 1-3
% weighted shift unit pulse response
clear all;
t1=-0.5:0.001:2;
K=3;
n1=length(t1);
u=zeros(1,n1);
t2=-0.5:0.001:1;
n2=length(t2);
u(n2)=K;
plot(t1,u)
axis([-0.5 2 0 3.2])
% exa1-3_weight_shift_unit_pulse_c.m for example 1-3
% weighted shift unit pulse response
clear all;
t1=-0.5:0.001:2;
K=3;
n1=length(t1);
u=zeros(1,n1);
t2=-0.5:0.001:1;
n2=length(t2);
u(n2)=K;
plot(t1,u)
axis([-0.5 2 0 3.2])
% exa1-3_weight_shift_unit_pulse_c.m for example 1-3
% weighted shift unit pulse response
clear all;
t1=-0.5:0.001:2;
K=3;
n1=length(t1);
u=zeros(1,n1);
t2=-0.5:0.001:1;
n2=length(t2);
u(n2)=K;
plot(t1,u)
axis([-0.5 2 0 3.2])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -