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

📄 prog8b7.m

📁 这是几种滤波器的MATLAB的M文件源码
💻 M
字号:

%
%  m-file for Example 8B.7 (Program 8B.7, p574)
%	Program name: prog8b7.m
%	Band stop filter
%
Fs=1000;										%	Sampling frequency
Ap=3;
As=20;
Wp=[50/500, 450/500];					%	Band edge frequencies
Ws=[200/500, 300/500];
[N, Wc]=buttord(Wp, Ws, Ap, As);		% Determine filter order
[zz, pz, kz]=butter(N,Ws, 'stop');				% Digitise filter
[b, a]=butter(N, Ws, 'stop');
subplot(2,1,1)								%	Plot magnitude freq. response
[H, f]=freqz(b, a, 512, Fs);			
plot(f, abs(H))
xlabel('Frequency (Hz)')
ylabel('Magnitude Response ')
subplot(2,1,2)								%	Plot pole-zero diagram
zplane(b, a)

⌨️ 快捷键说明

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