Graphing partial sums of harmonic fourier series
23 views (last 30 days)
Hi,everyone. So I have calculated by hand the sine and cousine fourier series in summation form. I was asked to plot the partial sum up to the fifth harmonic of the fourier cosine representation for x=-2 to 4 but I am ensure of how to do it. The cut off line of code is just the equation inside the summation
Walter Roberson on 1 Oct 2022
x = linspace(-2, 4, 200);
Currently you are using x = [-2, -1, 0, 1, 2, 3, 4] which is not enough to get a decent graph.