plot Fourier series in matlab for the function f(t)=-t-pi if -pi<=t<0 and f(t)=t+pi if 0<=t<=pi, f(t+2pi)=f(t)
Introduction : In this question, we will plot Fourier series in matlab for the function f(t)=-t-pi if -pi<=t<0 and f(t)=t+pi if 0<=t<=pi, f(t+2pi)=f(t). Question : plot Fourier series in matlab…