diff options
Diffstat (limited to '62/CH6/EX6.17/ex_6_17.sce')
-rwxr-xr-x | 62/CH6/EX6.17/ex_6_17.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/62/CH6/EX6.17/ex_6_17.sce b/62/CH6/EX6.17/ex_6_17.sce new file mode 100755 index 000000000..7e1dc069b --- /dev/null +++ b/62/CH6/EX6.17/ex_6_17.sce @@ -0,0 +1,23 @@ +clear;
+close;
+clc;
+w=-5:0.01:5;
+W0=2;
+for i=1:length(w)
+ if w(i)==W0 then
+ delta(i)=2*%pi;
+ else
+ delta(i)=0;
+ end
+end
+figure
+subplot(2,1,1)
+plot(w,delta);
+title('2*%pi*delta(w-w0)')
+//by shifting property
+n=-10:10;
+x=%e^-%i*W0*n;
+subplot(2,1,2)
+plot2d3(n,abs(x))
+plot(n,abs(x),'r.')
+title('x[n]')
\ No newline at end of file |