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 /1592/CH7/EX7.6/Example_7_6.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 '1592/CH7/EX7.6/Example_7_6.sce')
-rwxr-xr-x | 1592/CH7/EX7.6/Example_7_6.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1592/CH7/EX7.6/Example_7_6.sce b/1592/CH7/EX7.6/Example_7_6.sce new file mode 100755 index 000000000..754c5deff --- /dev/null +++ b/1592/CH7/EX7.6/Example_7_6.sce @@ -0,0 +1,20 @@ +//Scilab Code for Example 7.6 of Signals and systems by
+//P.Ramakrishna Rao
+clc;
+clear x y1 y y2 q t n;
+clear;
+//y(n)=x(n)-x(n-1);
+x=[2,4,3,6,7]
+for n=2:5
+ y(1,n)=x(n)-x(n-1);
+end
+disp(y,'This input gives the output:');
+disp('For a shift (n0) of 2 seconds');
+disp('At n=3 seconds:');
+n=5;
+b=y(n-2);
+a=x(n-2)-x(n-2-1);
+disp(a,'x(n-2):');
+disp(b,'is equal to y(n-2):');
+disp('Hence the system is Shift invariant/fixed');
+
|