Recent content by zuelhuzz

  1. Z

    Converting f(x) to MATLAB Code for Fourier Series with n=500

    The problem are as below :- f(x) = { x, for 0 < x < pi/2; x/2, for pi/2 < x < pi; pi-(x/2), for pi < x < 2*pi; how do I convert it to Matlab code and produce a graph of Fourier series with n=500? I have done analytically by hand for n=2, but the question ask to produce...