Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Objective: Study the Fourier reconstruction of waveform. Procedure: In this exer

ID: 3746673 • Letter: O

Question

Objective: Study the Fourier reconstruction of waveform. Procedure: In this exercise you will plot the Fourier series expansion for various terms starting from n-1 using Matlab. Then you will change the term to n-3, and 5, 7, 9, 11, 33, 55, 99, 133, 1333. Each time your plot should print student name and number of terms applied (n) at the title portion of the figure plot using MATLAB. Assume fundamental frequency o1- 377 rad/sec and amplitude is 120 volts for a square wave signal. (a) Write the first four terms of the Fourier series. Show your work. 120) cos (2639 -)Co3(3393 t)- m cos(2073st) 120 133m ) cos (5014B+ (b) The MATLAB code should appear here. Explain briefly the algorithm of the code. (c) Your plots should appear here: (d) Write a brief paragraph as a conclusion by discussing the results. Clearly stat what you have observed and learned.

Explanation / Answer

b)We can fit fourier model interactively,

1.Open the curve fitting app by entering cftool.Alternatively,click curve fitting on the apps tab.

2.In the curve fitting app select curve data,

3.Change the model type from polynomiyal to fourier.

You can specify the following options

*choose the number of terms(1 to 8)

*(optional)click fit option to specify coefficent starting values and constaint bounds or change algorithm settings.

Fit fourier models using the fit function :-

The fourier library model is an input agrement to fit and fit type function.Specify the model type fourier followed by the number of terms.

Load some data and fit fourier model

Load enso;

f=

General model Fourier2:

f(x)=a0+a1*cos(x*w)+b1*sin(x*w)+a2*cos(2*x*w)+b2*sin(2*x*w)

plot(f,month,pressure)

Same way we can write upto fourier8

d)The fourier series is a sum of sine and cosine functions,that describe the periodic signal.It represented in trigonometric form on the exponential form.

We can write the general form as,

y=a0+summation of i to n ai cos(iwx)+bi sin(iwx)

here,

a is the constent term

w is the fundamental freequency

n is the number of terms.