You are on page 1of 5

Experiment No.

1
Exponential Fourier
Series
n = -10:10;
fq =2*pi *(-10):2*pi:2*pi *(10); w = pi/4;
Timperiod = (2*pi)/w;
Freq =1/Timperiod;
Cons =-(w)*1i; h =
sinc(n*0.785);
D_n = (1/4)*exp(Cons*n);
final_n = (D_n).*(h);
Q = abs(final_n); stem(fq,Q)
title('Magnitude Plot')
xlabel('Frequency(rad/sec)')
ylabel ('Volt')

stem(n,Q)
title('Magnitude Plot')

1
xlabel('Time Sampling')
ylabel ('Magnitude')

stem(fq,angle(final_n))
title('Phase Plot')
xlabel('Frequency(rad/sec)')
ylabel ('Phase')

2
stem(n,angle(final_n))
title('Phase Plot')
xlabel('Time Sampling')
ylabel ('Phase')

3
w0 = (2*pi)/8;
syms t
Total =
sum(final_n.*exp(1i*n*w0*t)); t =
[0:0.01:32]; ezplot(Total,t)
title('Time Domain Signal')
xlabel('Time Linespace')

4
5

You might also like