TOTAL HARMONIC DISTORTION – [THD]
Output the total harmonic distortion of the input signal.
CATEGORY
Harmonic Analysis
Output the total harmonic distortion of the input signal:
RESULT VARIABLES AND PARAMETERS
Thd% | Total harmonic distortion value in percent. |
Thd_db | Total harmonic distortion value in db. |
Signal | Input |
Num_Harmonics | Number of harmonic use to calculate the THD. |
Freq | Value used has the fundamental frequency. |
SYNTAX
- [thd_perc,thd_db]=thd(input,num_harmonics,freq)
CHARACTERISTICS
Data type support
Double Floating point
EXAMPLE