summaryrefslogtreecommitdiff
path: root/40/CH4/EX4.10/Exa_4_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '40/CH4/EX4.10/Exa_4_10.sce')
-rwxr-xr-x40/CH4/EX4.10/Exa_4_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/40/CH4/EX4.10/Exa_4_10.sce b/40/CH4/EX4.10/Exa_4_10.sce
new file mode 100755
index 000000000..b89aaf3b8
--- /dev/null
+++ b/40/CH4/EX4.10/Exa_4_10.sce
@@ -0,0 +1,14 @@
+//inverse transform of sequences
+//(a)X(z)=3z^-1+5z^-3+2z^-4
+z=%z;
+X1=[3*z^-1;0;5*z^-3;2*z^-4];
+n1=1:4;
+ZI=z^n1';
+x1=numer(X1.*ZI);
+disp(x1,"x[n]=");
+//(b)X(z)=2z^2-5z+5z^-1-2z^-2
+X2=[2*z^2;-5*z;0;5*z^-1;-2*z^-2];
+n2=-2:2;
+ZI=z^n2';
+x2=numer(X2.*ZI);
+disp(x2,"x[n]="); \ No newline at end of file