Question: a) Plot the Fourier series of a function : x=linspace(-4,4); y=2+8/pi*(cos(pi/2*x)-1/3*cos(3*pi/2*x)+1/5*cos(5*pi/2*x)-1/7*cos(7*pi/2*x)); plot(x,y) b) Continue function adding next five terms following the rule ... y=2+8/pi*(cos(pi/2*x)-1/3*cos(3*pi/2*x)+1/5*cos(5*pi/2*x)-1/7*cos(7*pi/2*x)) ...
a) Plot the Fourier series of a function :
x=linspace(-4,4);
y=2+8/pi*(cos(pi/2*x)-1/3*cos(3*pi/2*x)+1/5*cos(5*pi/2*x)-1/7*cos(7*pi/2*x));
plot(x,y)
b) Continue function adding next five terms following the rule ...
y=2+8/pi*(cos(pi/2*x)-1/3*cos(3*pi/2*x)+1/5*cos(5*pi/2*x)-1/7*cos(7*pi/2*x)) ...
and check the result by plotting the function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
