summaryrefslogtreecommitdiff
path: root/3812/CH1/EX1.27.a/1_27_a.sce
blob: b7ef09bdcd324f70298b656723df18ff68a6af15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 1.27<a>
//Determine whether the following system is time invariant or not
clc;	
clear all;	
T =20;
s =2;
for n=1:T
x(n)=n;
y(n)=n*x(n);
end
IP=x(T-s);
OP=y(T-s);
if IP == OP then
disp('The given system is time invariant');
else
disp('The given system is time variant');
end