%The purpose of this GUI is to provide a better illustration of how the number of orders affects Total Harmonic Distortion percentage.
%Up to the 16th order is available for the adjustment.
%User is allowed to adjust the magnitude and phase for each harmonic order.
%The magnitude for each harmonic order CAN ONLY BE ADJUSTED by the slider.
%The ">>" sign located besides time-domain plot allows the user to amplify the graph plot.
%The "same exes plot" sign labeled at the top right of the frequency-domain plot allows the user to plot all harmonic order at same axes.
%Originally written by Dr. Rodney Tan at Oct 2018.
Roy Teong (2022). THD of Harmonics (https://www.mathworks.com/matlabcentral/fileexchange/72181-thd-of-harmonics), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Power Quality Harmonic Interactive Demo
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!