blob: 57cf4f3662f379ba3d0c917739ab730cfcac7751 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//determine z transform of x(n)={6,4,5,3}
clc;
clear;
x={6,4,5,3};
z=poly(0,"z");
X=0;
for n=1:1:4
X=X+x(n).*(z^(-1*(n-3-1)));//n-3 came because actual 0th position of x is the position of 3 here
end
disp(X,"Z tranform=");
|