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 /67/CH1/EX1.47 | |
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 '67/CH1/EX1.47')
-rwxr-xr-x | 67/CH1/EX1.47/example147.sce | 17 |
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 |