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/CH8/EX8.9a/Exa_8_9a.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/CH8/EX8.9a/Exa_8_9a.sce')
-rwxr-xr-x | 40/CH8/EX8.9a/Exa_8_9a.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/40/CH8/EX8.9a/Exa_8_9a.sce b/40/CH8/EX8.9a/Exa_8_9a.sce new file mode 100755 index 000000000..b61b2c4d9 --- /dev/null +++ b/40/CH8/EX8.9a/Exa_8_9a.sce @@ -0,0 +1,15 @@ +//DFT and DFS of sinusoids
+n2=0:0.5/1000:5.5/100;
+xt=4*cos(100*%pi*n2');
+n=0:(0.5)/100:(5.5)/100;//F=3/12 hence N=12
+xn=4*cos(100*%pi*n');
+XDFT=dft(xn,-1);
+n1=0:11;
+a=gca();
+a.x_location="origin";
+plot2d(n2,xt);
+plot2d3('gnn',n,xn);
+xset('window',1);
+b=gca();
+b.x_location="origin";
+plot2d3('gnn',n1,XDFT);
|