summaryrefslogtreecommitdiff
path: root/62/CH6/EX6.18/ex_6_18.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /62/CH6/EX6.18/ex_6_18.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '62/CH6/EX6.18/ex_6_18.sce')
-rwxr-xr-x62/CH6/EX6.18/ex_6_18.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/62/CH6/EX6.18/ex_6_18.sce b/62/CH6/EX6.18/ex_6_18.sce
new file mode 100755
index 000000000..883152187
--- /dev/null
+++ b/62/CH6/EX6.18/ex_6_18.sce
@@ -0,0 +1,22 @@
+clear;
+close;
+clc;
+n=-10:10;
+x=ones(1,length(n));
+figure
+subplot(2,1,1)
+plot2d3(n,x)
+plot(n,x,'r.')
+xtitle('x[n]','n')
+w=-5:0.01:5;
+for i=1:length(w)
+ if w(i)==0 then
+ delta(i)=1;
+ else
+ delta(i)=0;
+ end
+end
+Xw=2*%pi*delta';
+subplot(2,1,2)
+plot(w,Xw);
+xtitle('X(w)','w') \ No newline at end of file