blob: ab7272f8864f0da147250451537afaf86f1a5c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Example 3.17
clear;
clc;
no = 2; //Assume the amount of time shift =2
L = 10; //Length of given signal
for n = 1:L
x(n)=sin(n);
y(n)=-sin(n);
end
//First shift the input signal only
Input_shift = x(L-no);
Output_shift = y(L-no);
if(Input_shift == Output_shift)
disp('The given discrete system is a Time In-variant system');
else
disp('The given discrete system is a Time Variant system');
end
|