ex3049.m

来自「the file contain many matlab signal sour」· M 代码 · 共 18 行

M
18
字号
Wp=0.2*pi;Ws=0.3*pi;Rp=7;As=16;
Ripple=10^(-Rp/20)
Attn=10^(-As/20)
[b,a]=afd_butt(Wp,Ws,Rp,As);
[db,mag,pha,w]=freqs_m(b,a,0.5*pi);
[ha,x,t]=impulse(b,a)
% plots
subplot(221)
plot(w,mag);;grid
subplot(222)
plot(w,db);;grid
subplot(223)
plot(w,pha);;grid
subplot(224)
plot(t,ha)
grid on

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?