pe_calculateThdPercent
Compute the total harmonic distortion (THD) percentage
Description
[
calculates the total harmonic distortion (THD) percentage using these equations: thdPercent
] = pe_calculateThdPercent(harmonicOrder
,...
harmonicMagnitude
)
and
where:
Mi is the root mean square (RMS) value of the harmonic magnitude corresponding to the ith harmonic order.
M is VRMS or IRMS as required.
You can use the ee_getHarmonics
function to obtain the vectors of
harmonic order and harmonic magnitude for a simscape.logging.Node
.