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

📄 p5_17.m

📁 Digital Signal Processing-A Computer-Based Approach(Second Edition)Sanjit K.Mitra实验指导书练习题matlab程序
💻 M
字号:
%Program ZouyxLabExeSheet_2
%Program to Design Butterworth Lowpass Filter
%
%Type in the filter order and 3-dB cutoff frequency
N=input('Type in filter order = ');
Wn=input('3-dB cutoff frequency = ');
%Determine the transfer function
[num,den]=butter(N,Wn,'s');
%Compute and plot the frequency response
omega=[0:200:20000*pi];
h=freqs(num,den,omega);
plot(omega/(2*pi),20*log10(abs(h)));grid
xlabel('Frequency,Hz');ylabel('Gain,dB');
title('The gain response of the Butterworth lowpass filter');

⌨️ 快捷键说明

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