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/CH5/EX5.1 | |
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/CH5/EX5.1')
-rwxr-xr-x | 1592/CH5/EX5.1/Example5_1.sce | 32 | ||||
-rwxr-xr-x | 1592/CH5/EX5.1/Fig5_1_1.jpg | bin | 0 -> 5780 bytes | |||
-rwxr-xr-x | 1592/CH5/EX5.1/Fig5_1_2.jpg | bin | 0 -> 7955 bytes |
3 files changed, 32 insertions, 0 deletions
diff --git a/1592/CH5/EX5.1/Example5_1.sce b/1592/CH5/EX5.1/Example5_1.sce new file mode 100755 index 000000000..2377d89fa --- /dev/null +++ b/1592/CH5/EX5.1/Example5_1.sce @@ -0,0 +1,32 @@ +//Scilab Code for Example 5.1 of Signals and systems by
+//P.Ramakrishna Rao
+//Discrete Time Fourier Transform of
+//x[n]= (a^abs(n)) 0<a<1
+clear;
+clc;
+close;
+// DTS Signal
+a = 0.5; //0<a<1
+max_limit = 10;
+n = -max_limit+1:max_limit-1;
+x = a^abs(n);
+// Discrete-time Fourier Transform
+Wmax = 2*%pi;
+K = 4;
+k = 0:(K/1000):K;
+W = k*Wmax/K;
+XW = x* exp(-sqrt(-1)*n'*W);
+XW_Mag = real(XW);
+W = [-mtlb_fliplr(W), W(2:1001)]; // Omega from -Wmax to Wmax
+XW_Mag = [mtlb_fliplr(XW_Mag), XW_Mag(2:1001)];
+a = gca();
+a.y_location ="origin";
+a.x_location ="origin";
+plot2d3('gnn',n,x);
+xtitle('Discrete Time Sequence x[n] for a>0')
+figure(1);
+a = gca();
+a.y_location ="origin";
+a.x_location ="origin";
+plot2d(W,XW_Mag);
+title('Discrete Time Fourier Transform X(exp(jW))')
diff --git a/1592/CH5/EX5.1/Fig5_1_1.jpg b/1592/CH5/EX5.1/Fig5_1_1.jpg Binary files differnew file mode 100755 index 000000000..ae3eea0c4 --- /dev/null +++ b/1592/CH5/EX5.1/Fig5_1_1.jpg diff --git a/1592/CH5/EX5.1/Fig5_1_2.jpg b/1592/CH5/EX5.1/Fig5_1_2.jpg Binary files differnew file mode 100755 index 000000000..38ac34290 --- /dev/null +++ b/1592/CH5/EX5.1/Fig5_1_2.jpg |