File Exchange

image thumbnail

Fourier series of square wave. Demo of Gibbs phenomenon with overshoot calculation

This file gives a simple demonstration of how a square wave can be approximated by Fourier series.

4 Downloads

Updated

View License

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

Comments and Ratings (1)

Ali Waqas

thanks for this ! was very helpfull

Updates

1.14

It does the following:
1) 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

1.3

This version also plots the Fourier coefficients. The is modified for simplicity and readability.

MATLAB Release
MATLAB 8.1 (R2013a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video