THD of Harmonics
%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.
Cite As
Roy Teong (2023). THD of Harmonics (https://www.mathworks.com/matlabcentral/fileexchange/72181-thd-of-harmonics), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |