blob: d8619d9c58ebf6ff2c19fbf4e28b3a1892e04c04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//z transform of switched periodic signals
z=%z;
//sol. for 4.20a
x1=[0 1 2];
n=0:2;
N=3;
x1z=x1*(1/z)^n'
xz=x1z/(1-z^-N)
//sol.for 4.20b
x1=[0 1 0 -1];
n=0:3;
N=4;
x1z=x1*(1/z)^n'
xz=x1z/(1-z^-N)
//sol.for 4.20c
xz=(2+z^-1)/(1-z^-3);
x1z=numer(xz)
//thus first period of xn is [2 1 0]
//sol.for 4.20d
xz=(z^-1-z^-4)/(1-z^-6);
x1z=numer(xz)
//thus first period of xn is [0 1 0 0 -1 0]
|