blob: 34530ba8430d30d4e5b329331d25efad6d5adee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//EXAMPLE 6.10
//Z-transform from pole-zero locations
clc;
clear;
z=%z;
//using the pole & zero locations provided
num=(z-0.21)*(z-3.14)*(z-(-0.3+%i*0.5))*(z-(-0.3-%i*0.5));
den=(z+0.45)*(z-0.67)*(z-(0.81+%i*0.72))*(z-(0.81-%i*0.72));
k=2.2;
Gz=(num/den);
disp(k*Gz,'Gz = ');
|