% This interactive demo generates power quality harmonic waveform up to
% 15th orders based on numerical modeling approach.
% This demo also visualize the harmonic in frequency domain and computes
% the its Total Harmonic Distortion.
% It allows user to set the magnitude and phase for each harmonic order.
% The harmonic waveform can then save as .mat file format.
Inspired: THD of Harmonics