summaryrefslogtreecommitdiff
path: root/716/CH7/EX7.1.c/Solved_Ex_7_1c.sce
blob: 318d67ceacc694671ec210b225726c5beaa4c71f (plain)
1
2
3
4
5
6
7
8
9
10
//determine z transform of x(n)={2,4,5,7,3}
clc;
clear;
x={2,4,5,7,3};
z=poly(0,"z");
X=0;
for n=1:1:5
    X=X+x(n).*(z^(-1*(n-2-1)));//n-3 came because 0th podition of x is the position of 3
end
disp(X,"Z tranform=");