I am trying to find THD of 2 H-Bridge cascade Multilevel inverter. THD calculated using THD Formula and the THD in FFT analysis are different for a particular case, in all other cases it matches exactly. so which one is accurate THD in MATLAB or THD by formula?
Please find the THD formula which have used attached