This MATLAB code provides an example of plotting a truncated Fourier series representation of a square wave signal. It computes the Fourier series in both complex exponential form (yce) and trigonometric form (yt) up to the Nth term, where N is an odd integer. It plots the original square wave, the truncated Fourier series approximations yce and yt, and their amplitude and phase spectra. The code demonstrates how to calculate and visualize truncated Fourier series representations of a periodic signal.