Hello , I am new to Matlab and I want Compute the harmonic contents and THD for the voltage waveform shown in the attached file with The sample rate of the signal is 32 /cycle
1 次查看(过去 30 天)
显示 更早的评论
Hello , I am new to Matlab and I want Compute the harmonic contents and THD for the voltage waveform shown in the attached file with The sample rate of the signal is 32 /cycle consider fundamental frequency = 60 HZ
0 个评论
回答(1 个)
Anagha Mittal
2022-5-10
Hi!
MATLAB provides a direct function named thd to compute the total harmonic distortion of any signal.
You may create a vector of entries mentioned in Signal.xlsx and pass it as an argument to the thd function.
Here is the documentation link for reference: https://www.mathworks.com/help/signal/ref/thd.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!