summaryrefslogtreecommitdiff
path: root/3812/CH3/EX3.11/3_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '3812/CH3/EX3.11/3_11.sce')
-rw-r--r--3812/CH3/EX3.11/3_11.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3812/CH3/EX3.11/3_11.sce b/3812/CH3/EX3.11/3_11.sce
new file mode 100644
index 000000000..9762935e9
--- /dev/null
+++ b/3812/CH3/EX3.11/3_11.sce
@@ -0,0 +1,22 @@
+//example 3_11
+//exponential fourier Series coefficient and corresponding spectra
+clc;
+clear;
+close;
+//Assume period of the impulse train T=2
+T=2;
+t=-5*T:T:5*T;
+for i=1:length(t)
+x(i)=1;
+end
+//Using shifting property of the impulse signal//
+k=-10:10
+for i=1:length(k)
+ak(i)=1/T;
+end
+subplot(2,1,1)
+plot(t,x,'.')
+xtitle("Impulse train","t","x(t)")
+subplot(2,1,2)
+plot(k,ak,'.')
+xtitle("Fourier coefficients of impulse train","k","ak")