Total Harmonic Distortion
R2026bTotal harmonic distortion measurement
Libraries:
Simscape /
Electrical /
Control /
Measurements
Description
The Total Harmonic Distortion block calculates the total harmonic distortion (THD) percentage using these equations:
and
where:
Mi is the root mean squared (RMS) value of the harmonic magnitude that corresponds to the ith harmonic order.
M is VRMS or IRMS.
is the sum of all harmonic components.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ee_sl_lib/Measurements/Total Harmonic Distortion"
Example: add_block("ee_sl_lib/Measurements/Total Harmonic Distortion","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2019b
