blob: a7653ac47a7ac64ebec20bdff989e41fa19b9fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 2.8 (a)
//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
//Z transform of cos(Wo*n)
clc;
syms Wo n z;
x1=exp(sqrt(-1)*Wo*n);
X1=symsum(x1*(z^-n),n,0,%inf);
x2=exp(-sqrt(-1)*Wo*n);
X2=symsum(x2*(z^-n),n,0,%inf);
X=(X1+X2)/2;
disp(X,'X(z)=');
|