Can you please do 2.8. And can you use matlab and show it to me step by step.Tha
ID: 2079664 • Letter: C
Question
Can you please do 2.8. And can you use matlab and show it to me step by step.Thank you
Chapter 2 Frequency Domain An 70 a. cos (2mnfot) cos (2mm fot) dt 0 if m n and +T cos (2mnfot) cos (2mmfr) dt 0 if m n b. sin (2mnfor) sin(2mm fot) di 0 if m n and c. cos(2Tnfot) sin(2 mm fot) dt 0 for all values of m and n 2.5 Using the concept of orthogonality, derive the equations for the coefficients of th: trigonometric form of the Fourier series (i.e., derive the expressions (Hint: To find the expression for a start with the expression for the trigonometric fo of the Fourier series, multiply both the left-hand and right-hand sides by cos 2mmf integrate over one period of the fundamental frequency. The ao and bn expressions can found in a similar manner.) 2.6 Using the Fourier coefficients determined in Example 2.3, Part A, and an appropria software graphics package, reproduce the plots from Figures 2-8a-d. 2.7 Express the waveform in Figure P2-7 as a series of sinusoids. Your expression should the actual Fourier coefficient values (i.e., the values of a an, and bn) for the de term and at least the first four harmonics. Your expression should also use the actual value of the fundamental frequency (fo).You may wish to set up a spreadsheet or software programto calculate your Fourier coefficients, since you will need to calculate the values for higher order harmonics Problem 2.8 seconds Figure P2-7 2.8 To see how many harmonics are needed for the Fourier series expression developed in Problem 2.7 to adequately replicate the original waveform, a. Plot the waveform produced by summing the do component and the sinusoids as ated with the first five harmonics ated with the first produced by summing the do component and the sinusoids associExplanation / Answer
clc;
close all;
clear all;
N=input('Enter number of harmonics 5 or 10 or 15 or 25');
w0= 2*pi*(1/7); % fundamental frequency
a0=(6/7);
t=0:0.1:10
% for five harmonics
f=0;
for n=1:N
an=(2/(7*n*w0)) *( (sin((4*pi*n)/7))- (2*(sin((2*pi*n)/7)))-(2*(sin((8*pi*n)/7)))+(sin((10*pi*n)/7)));
bn=(2/(7*n*w0)) *( (2*(cos((2*pi*n)/7)))+ (cos((8*pi*n)/7))-(cos((4*pi*n)/7))-(2*(cos((10*pi*n)/7))));
f0=an*(cos((n*w0).*t)) +bn*(sin((n*w0).*t));
f=f0+f;
end
ft=a0 +f;
plot(t,ft);
% As n(number of harmonics) varies the shape of the waveform will be adjusted ...ideally for
% infinity it will give same shape.