
Fourier series always suprised me.. Harmonics are amazing.. They added together and we get another function.. Let's see it by our own eyes. How harmonics summation give the square wave?
To do this and see step by step I wrote a small m-file and used pause command to see changes in function when harmonics are added. Here you are the codes...