Thank you John.
1. I am sorry for the confusion, here is another example:
H = [84.8190 43.6400 34.9430 34.1940 38.1570 31.1410]; (Fundamental, H2, H3.. H6 in SPL)
Can you please share the formula you used to calculate the THD (REW result: 0.513% for the calculation with 6 harmonics)...