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 /162/CH1/EX1.11.b/example111b.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 '162/CH1/EX1.11.b/example111b.sce')
-rwxr-xr-x | 162/CH1/EX1.11.b/example111b.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/162/CH1/EX1.11.b/example111b.sce b/162/CH1/EX1.11.b/example111b.sce new file mode 100755 index 000000000..256d554fe --- /dev/null +++ b/162/CH1/EX1.11.b/example111b.sce @@ -0,0 +1,16 @@ +//Example 1.11b
+//Determine whether the following signal is time invariant or not
+clc;
+n0=2;
+N=10;
+for n=1:N
+ x(n)=n;
+ y(n)=n*x(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 |