summaryrefslogtreecommitdiff
path: root/3838/CH2/EX2.11.a/EX2_11_a.sce
blob: 78372bd798785a0458ab11a6bb49ef934c467514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 2.11.a
//to check the system is time invariant or not
clc ;
t0 =1;
T =10;
for t =1: T
x ( t ) =t;
y ( t ) =(2)*(t)*x(t) ;
end
inputshift = 2*(T)*x (T - t0 );
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