diff options
Diffstat (limited to '62/CH6/EX6.5')
-rwxr-xr-x | 62/CH6/EX6.5/ex_6_5.sce | 25 | ||||
-rwxr-xr-x | 62/CH6/EX6.5/ex_6_5_1.png | bin | 0 -> 10074 bytes | |||
-rwxr-xr-x | 62/CH6/EX6.5/ex_6_5_2.png | bin | 0 -> 9654 bytes |
3 files changed, 25 insertions, 0 deletions
diff --git a/62/CH6/EX6.5/ex_6_5.sce b/62/CH6/EX6.5/ex_6_5.sce new file mode 100755 index 000000000..cbad048e5 --- /dev/null +++ b/62/CH6/EX6.5/ex_6_5.sce @@ -0,0 +1,25 @@ +clear;
+close;
+clc;
+T0=4;
+w0=%pi/2;
+y=[1 0 0 0];
+n=-8:7;
+x=[];
+for i=1:length(n)/T0
+ x=[x y];
+end
+plot2d3(n,x);
+plot(n,x,'r.');
+xtitle('x[n]','n')
+for k=-9:9
+ c(k+10)=0;
+ for n=0:3
+ c(k+10)=c(k+10)+ (1/4)*(y(n+1))*(%e)^(%i*w0*k*n);
+ end
+end
+k=-9:9;
+figure
+plot2d3(k,abs(c));
+plot(k,c,'r.')
+xtitle('x[n]','n')
\ No newline at end of file diff --git a/62/CH6/EX6.5/ex_6_5_1.png b/62/CH6/EX6.5/ex_6_5_1.png Binary files differnew file mode 100755 index 000000000..f61f05726 --- /dev/null +++ b/62/CH6/EX6.5/ex_6_5_1.png diff --git a/62/CH6/EX6.5/ex_6_5_2.png b/62/CH6/EX6.5/ex_6_5_2.png Binary files differnew file mode 100755 index 000000000..6cdbb79bc --- /dev/null +++ b/62/CH6/EX6.5/ex_6_5_2.png |