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 /40/CH5/EX5.4/Exa_5_4.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 '40/CH5/EX5.4/Exa_5_4.sce')
-rwxr-xr-x | 40/CH5/EX5.4/Exa_5_4.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/40/CH5/EX5.4/Exa_5_4.sce b/40/CH5/EX5.4/Exa_5_4.sce new file mode 100755 index 000000000..c04a7543a --- /dev/null +++ b/40/CH5/EX5.4/Exa_5_4.sce @@ -0,0 +1,20 @@ +//DTfT of periodic signals
+x=[3 2 1 2];//one period of signal
+n=0:3;
+k=0:3;
+x1=x*exp(%i*n'*2*k*%pi/4)
+dtftx=abs(x1)
+x=[3 2 1 2 3 2 1 2 3];
+n=-4:4;
+a=gca();
+a.y_location="origin";
+a.x_location="origin";
+plot2d3('gnn',n,x);
+xtitle('discrete periodic time signal');
+x2=[dtftx dtftx 8];
+a=gca();
+xset('window',1);
+a.x_location="origin";
+a.y_location="origin";
+plot2d3('gnn',n,x2);
+xtitle('DTFT of discrete periodic signal');
\ No newline at end of file |