summaryrefslogtreecommitdiff
path: root/67/CH1/EX1.47
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /67/CH1/EX1.47
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 '67/CH1/EX1.47')
-rwxr-xr-x67/CH1/EX1.47/example147.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/67/CH1/EX1.47/example147.sce b/67/CH1/EX1.47/example147.sce
new file mode 100755
index 000000000..6bc4172e9
--- /dev/null
+++ b/67/CH1/EX1.47/example147.sce
@@ -0,0 +1,17 @@
+//Example 1.47
+clc;
+k0=2;
+n0=2;
+N=10;
+x=[1,2,3,4,5,6,7,8,9,10];
+y=zeros(1,length(x));
+for n=1:length(x)/k0
+ y(n)=x(k0*n);
+end
+inputshift=x(N-n0);
+outputshift=y(N-n0);
+if(inputshift==outputshift)
+ disp('THE GIVEN SYSTEM IS TIME INVARIANT')
+else
+ disp('THE GIVEN SYSTEM IS TIME VARIANT');
+end \ No newline at end of file