THD calculation result same on different model
显示 更早的评论
when I tried to calculate FFT on three different model its showing the same result but i am very sure the model is totally different. Why the result is coming like a default result.
4 个评论
Voss
2022-4-15
Please post the relevant code.
Chandra Prakash
2022-4-16
Voss
2022-4-16
The code throws no errors, but the results are the same for 3 different models, right?
Sounds like something is wrong in the code; maybe it's something as simple as only the last model's result is being plotted three times, perhaps because of a typo or a mistake in the logic of the code.
It is impossible to guess what the problem is without seeing the code.
Chandra Prakash
2022-4-16
回答(1 个)
Sayan
2023-11-2
0 个投票
Hi Chandra Prakash,
I understand from your issue that you are getting the same THD results when you were trying to find them using the "FFT Analyzer" app of powergui block.Without investigating the model, it is difficult to find the exact reason for the issue.
However,an alternative way to find the THD is to use the THD block (available at Simscape / Electrical / Specialized Power Systems / Sensors and Measurements) which computes the THD for a periodic distorted signal. This block requires the "Fundamental frequency of the input signal (Hz)" to be filled with the fundamental frequency of the signal and output the result in decimal form.
You can find more information on the THD block in the following documentation:
Hope this helps in resolving the issue.
类别
在 帮助中心 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!