summaryrefslogtreecommitdiff
path: root/2279/CH3/EX3.17/eg_3_17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2279/CH3/EX3.17/eg_3_17.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2279/CH3/EX3.17/eg_3_17.sce')
-rwxr-xr-x2279/CH3/EX3.17/eg_3_17.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2279/CH3/EX3.17/eg_3_17.sce b/2279/CH3/EX3.17/eg_3_17.sce
new file mode 100755
index 000000000..ab7272f88
--- /dev/null
+++ b/2279/CH3/EX3.17/eg_3_17.sce
@@ -0,0 +1,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