This file gives a simple demonstration of how a square wave can be approximated by Fourier series. It does the following:
1) It demonstrates the effect of truncation of Fourier series coefficients, also known as Gibbs phenomenon.
2) Calculates the percentage overshoot.
3) Calculates the energy in the error between original and approximated signal
It does the following:
This version also plots the Fourier coefficients. The is modified for simplicity and readability.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.