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

📄 cheby1_3db_lp.m

📁 编写一个函数
💻 M
字号:
function [b,a] = cheby1_3db_lp(N,Fc,Ap)
% CHEBY1_3DB Design a lowpass Chebyshev Type I filter given a 3 dB point.
%   Inputs:
%       N  - Filter order
%       Fc - 3 dB cutoff frequency (0 to 1)
%       Ap - Passband attenuation (dB)

% Compute cutoff frequency of analog lowpass filter
Wc = tan(pi*Fc/2); 

% Find corresponding analog passband-edge frequency
Wp = Wc/cosh(1/N*acosh(1/sqrt(10^(Ap/10)-1)));

% Convert analog passband-edge frequency to digital
Fp = 2*atan(Wp)/pi;

% Use classic design technique
[b,a] = cheby1(N,Ap,Fp)
fvtool(b,a);




⌨️ 快捷键说明

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