diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /842/CH1/EX1.16/Example1_16.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '842/CH1/EX1.16/Example1_16.sce')
-rwxr-xr-x | 842/CH1/EX1.16/Example1_16.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/842/CH1/EX1.16/Example1_16.sce b/842/CH1/EX1.16/Example1_16.sce new file mode 100755 index 000000000..1fcbfd98d --- /dev/null +++ b/842/CH1/EX1.16/Example1_16.sce @@ -0,0 +1,22 @@ +//clear//
+//Example 1.16:Classification of system:Time Invariance Property
+//Page 52
+//To check whether the given system is a Time variant (or) Time In-variant
+// The given discrete signal is y(t) = x(2t)
+clear;
+clc;
+to = 2; //Assume the amount of time shift =2
+T = 10; //Length of given signal
+x = [1,2,3,4,5,6,7,8,9,10];
+y = zeros(1,length(x));
+for t = 1:length(x)/2
+ y(t) = x(2*t);
+end
+//First shift the input signal only
+Input_shift = x(T-to);
+Output_shift = y(T-to);
+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
|