Chbihov analog filter
The given technical indicators are:
It is known that the cut-off frequency of the band is fp = 5 kHz, the maximum attenuation of the band is Delta C <= dB, the cut-off frequency of the band is FS = 12 kHz, and the minimum attenuation of the band is Delta Z> = 30db,
Based on the above technical indicators, the design and implementation of the kV 1 low-pass filter are as follows.
WP = 5000*2 * PI;
Ws = 12000*2 * PI;
Rp = 2;
Rs = 30;
[N, Wn] = cheb1ord (WP, WS, RP, RS, 's'); % calculate the order and cut-off frequency
C = wn/(2 * PI );
[B, A] = cheby1 (n, RP, Wn,'s); % returns the coefficient of the passed function.
[Z, P, K] = cheby1 (n, RP, Wn, 's'); % obtains the zero pole and gain of the filter.
W = linspace (1, 30000,100 0) * 2 * PI;
H = freqs (B, A, W); % calculate the frequency response of the system on the specified frequency point vector W H
Magh = ABS (h );
Phah = unwrap (angle (h ));
Plot (W/(2 * PI), 20 * log10 (magh ));
Title ('amplitude-frequency characteristics of the slbixuefu I low-pass filter ');
Xlabel ('frequency/Hz ');
Ylabel ('amplitude/B ');