How do I transform this Digital filter to analog

7 views (last 30 days)
How do I transform this digital filter to analog one, using bilinear transformation from z-plane to s-plane? I also have the information that s=(2*(z-1))/(ts*(z+1)) where ts is the period of discretization.
clear all;
close all;
clc;
fs=2600;
fn=fs/2;
ws=[710 839]/fn;
wp=[752 787]/fn;
rp=0.1;
rs=25;
k=1024;
[n,wn]=cheb2ord(wp,ws,rp,rs);
[nz,dz] = cheby2(n,rs,wn,'bandpass');
[H,w]=freqz(nz,dz,k/2);
m=abs(H);
ma=-20*log10(m);
plot(((w*fs)/(2*pi)),ma,'g');

Answers (1)

Star Strider
Star Strider on 10 Jun 2018
Easiest:
[ns,ds] = cheby2(n,rs,wn,'bandpass','s');
Then use freqs instead of freqz.

Categories

Find more on Transforms and Spectral Analysis in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!