summaryrefslogtreecommitdiff
path: root/830/CH3/EX3.1.1/Direct_Ztransform.sce
blob: 8fc9a9e85e022c9660e106538cb700de9306cee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Graphical//
//Example 3.1.1
//Z Transform of Finite Duration SIgnals
clear;
clc;
close;
x1 = [1,2,5,7,0,1];
n1 = 0:length(x1)-1;
X1 = ztransfer_new(x1,n1)
x2 = [1,2,5,7,0,1];
n2 = -2:3;
X2 = ztransfer_new(x2,n2)
x3 =[0,0,1,2,5,7,0,1];
n3 = 0:length(x3)-1;
X3 = ztransfer_new(x3,n3)
x4 = [2,4,5,7,0,1];
n4 = -2:3;
X4 = ztransfer_new(x4,n4)
x5 = [1,0,0];  //S(n) Unit Impulse sequence
n5 = 0:length(x5)-1;
X5 = ztransfer_new(x5,n5)
x6 = [0,0,0,1];  //S(n-3) unit impulse sequence shifted
n6 = 0:length(x6)-1;
X6 = ztransfer_new(x6,n6)
x7 = [1,0,0,0];  //S(n+3) Unit impulse sequence shifted
n7 =  -3:0;
X7 = ztransfer_new(x7,n7)