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

📄 ex3052.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;
OmegaP=wp/T;
OmegaS=ws/T;
ep=sqrt(10^(Rp/10)-1);
Ripple=sqrt(1/(1+ep*ep));
Attn=1/(10^(As/20));
% Analog Butterworth Prototype Filter Calculation:
[cs,ds]=afd_butt(OmegaP,OmegaS,Rp,As);
[b,a]=imp_invr(cs,ds,T)
% 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,10]);grid

⌨️ 快捷键说明

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