Generalize the computer program of Computer Example 2.1 to evaluate the coefficients of the complex exponential Fourier series of several signals. Include a plot of the amplitude and phase spectrum of the signal for which the Fourier series coefficients are evaluated. Check by evaluating the Fourier series coefficients of a square wave. Plot the square-wave approximation by summing the series through the seventh harmonic.
Example 2.1
![2421_b4c2b019-77e0-4e78-882d-094d62028741.png](https://secure.tutorsglobe.com/CMSImages/2421_b4c2b019-77e0-4e78-882d-094d62028741.png)