⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex3056.m

📁 the file contain many matlab signal source code and many example .
💻 M
字号:
wp=0.2*pi;ws=0.3*pi;Rp=1;As=15;
T=1;Fs=1/T;
OmegaP=(2/T)*tan(wp/2);
OmegaS=(2/T)*tan(ws/2);
ep=sqrt(10^(Rp/10)-1);
Ripple=sqrt(1/(1+ep*ep));
Attn=1/(10^(As/20));
[cs,ds]=afd_chb2(OmegaP,OmegaS,Rp,As);
[b,a]=bilinear(cs,ds,T);
[C,B,A]=dir2cas(b,a)
% Plots
[db,mag,pha,grd,w]=freqz_m(b,a);
subplot(221)
plot(w/pi,mag);axis([0,1,0,1.1]);grid
subplot(222)
plot(w/pi,db);axis([0,1,-40,5]);grid
subplot(223)
plot(w/pi,pha/pi);axis([0,1,-1,1]);grid
subplot(224)
plot(w/pi,grd);axis([0,1,0,15]);grid

⌨️ 快捷键说明

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