How to use the power_fftscope function

조회 수: 22 (최근 30일)
Inuwa Inuwa
Inuwa Inuwa 2023년 10월 27일
답변: Shlok 2025년 3월 6일
I use the power_fftscope function to obtain the plot and values of both current and voltage THD, whenever I run the code it displays error, is their any suggestions for any code

답변 (1개)

Shlok
Shlok 2025년 3월 6일
Hi,
I understand that you want to compute and visualize the FFT analysis, including THD, using power_fftscope. To achieve the same, follow the following steps:
  • First ensure that your data is supplied in a structure with fields like “time”,signals.values”, and “signals.dimensions”. For example:
ScopeData.time = (0:0.001:1)';
ScopeData.signals.values = sin(2*pi*50*ScopeData.time);
ScopeData.signals.dimensions = 1;
  • Pass this data in “power_fftscope” function which will compute and return calculated FFT data. This data can be plotted by passing it in “power_fftscope function.
FFTDATA = power_fftscope(ScopeData);
power_fftscope(FFTDATA);
  • The calculated FFT data also containst the THD Value, which you can access using “.THD”.
To know more about “power_fftscope” function, refer to the following MathWorks documentation:

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Sensors and Transducers에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by