The animation is divided into two parts. In the first part, it shows first three harmonics as circles and how they are mapped to sinusoids. In the second part, it combines each harmonics and circles to obtain the synthesis of the square wave.
The whole animation can be watched at http://youtu.be/LznjC4Lo7lE
Mehmet E. Yavuz (2020). Fourier Series Animation using Harmonic Circles (https://www.mathworks.com/matlabcentral/fileexchange/49533-fourier-series-animation-using-harmonic-circles), MATLAB Central File Exchange. Retrieved .
Amazing and very illustrative.
Excellent submission. I got it to work only when I downloaded into this mfile the ds2nfu function at the bottom of the script.
I do have the same question as Juinaid asked below, but, I guess, how would I get it to link back to the actual ds2nfu function on File Exchange rather than putting it into the actual script?
thanks in advance
I am having an error in line 65 ds2nfu undefined function???
That is the best illustration.
Great! Thanks a lot!
Excellent! Very efficient way of simulating the underlying basics of the Fourier Theory. Thank you!
Link to animation added
Inspired: Decomposition of a signal in time domain