Professional Documents
Culture Documents
Bilinear Transformation BP Bs
Bilinear Transformation BP Bs
Bilinear Transformation BP Bs
w0=sqrt(wal*wah);
W=wah-wal;
% Frequency response
N = 512; % FFT point number
[hz, f] = freqz(a, b, N, Fs); % computing frequency response
phi = 180*unwrap(angle(hz))/pi; % Unwarping the phase angle
subplot(211)
plot(f, abs(hz), 'linewidth', 2);
ylabel('Magnitude Response');xlabel('Frequency(Hz)');
subplot(212)
plot(f, phi, 'linewidth', 2);
ylabel('Phase Response'); xlabel('Frequency(Hz)');