exa1_2.m

来自「matlab应用实例。如:FIR、IIR数字滤波器设计等。」· M 代码 · 共 53 行

M
53
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?