summaryrefslogtreecommitdiff
path: root/3838/CH2/EX2.12.b/EX2_12_b.sce
blob: 0bbd6bbd7fd0358d43f5fd5766952ee7aa34b24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 2  2.12.b
clc ;
t0 =1;
T =10;
c=2;
for t =1: T
x ( t ) =t;
y ( t ) =x(t)+c ;
end
inputshift = x (T - t0)+c 
outputshift = y (T - t0 ) 
if( inputshift == outputshift )
disp ( 'THE GIVEN SYSTEM I S TIME INVARIANT ' );
else
disp ( 'THE GIVEN SYSTEM I S TIME VARIANT ' ) ;
end