This is what i currently have an=0 a0=0 bn= look below can someone solve c and d
ID: 3349087 • Letter: T
Question
This is what i currently have an=0 a0=0 bn= look below
can someone solve c and d, b works fine
b) Using the Fourier coefficients that you determined from a), plot x(t) in MATALB that considers 4·Note: you should the first 40 terms in the Fourier series if T= 4 seconds. Plot x(t) for-4 not simply enter term by term in MATLAB to complete the plot] t x(t) -2T 2T -1 c) Based on the Fourier coefficients that you determined from a), if T= 2 seconds, plot both the magnitude spectrum and phase spectrum of x(t) as a function of n for -10 3nExplanation / Answer
Matlab code :
clear ,
close all;
Fs=60;
t=0:1/Fs:20-1/Fs;
y=square(t,50);
y(y>0)=2;
y(y<0)=-12;
figure, plot(t,y);
axis ([0 20 -20 10])
% Fourier Series
a0=0;
Fy=zeros(size(t));
N=10;
for n=1:2:N
Fy=Fy+(4/n*pi)*sin(2*pi*n*t/(2*pi));
end
hold on,
plot(t,Fy,'r')
legend(' Square ','Fourier Approx');
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.