Write a code that will represent the complex exponential


Fourier Series

Introduction:

In this lab, you will learn about the Fourier series and how the exponential form can construct any periodic signal.

Procedure:

- Copy the following code to an m.file and save it under Fourier series.
clear all
t = 0:0.001:10;

g = 0:2;
k = (2*g)+1;

for y = 1:length(t)

for l = 1:length(k)
x(l) = (4/(pi*k(l)))*sin((k(l)*2*pi*t(y)));
end
z(y) = sum(x);
end
plot(t,z)

- Interpret each line in the code with your own words.

- Change the number of harmonics k to range from 0:20 and notice the difference.

- Write a code that will represent the complex exponential form of the Fourier series for a triangular signal, half wave rectified signal, full wave rectified signal, and train of pulses signal, use the table that the instructor will give you during the class.

- Plot the Fourier representation of each signal.

- Elaborate with your own words on the Gibbs phenomena.

- Write a report that shows all plots, codes and discuss the achieved results.

Attachment:- Table.rar

Solution Preview :

Prepared by a verified Expert
Simulation in MATLAB: Write a code that will represent the complex exponential
Reference No:- TGS01684850

Now Priced at $50 (50% Discount)

Recommended (98%)

Rated (4.3/5)