How can i export all data points from FFT analysis Tool to workspace

What i want to do is export all datapoints from FFT analysis tool for THD calculation, but i want to export all the harmonics and its output voltages to calculate the THD manually..if someone knows i would be greatful for your help...
thanks in advance

답변 (1개)

Samitha
Samitha 2013년 4월 19일
sps = power_fftscope(bdroot);
%Sampling time
Ts = sps.FFTdata.t(2)-sps.FFTdata.t(1);
%Samples per cycle
Sc = 1/(Ts*sps.fundamental);
%DC component
DC = sps.mag(1);
%Fundamental frequency
Fc = sps.fundamental;
%Total harmonic distortion
THD = sps.THD;
save('sps.mat','sps','-mat');
Everything will be in sps structure.

댓글 수: 2

Hi Samitha,
I want only voltage harmonic magnitude Vs harmonic order to be tabulated from Simulink FFT Tool. Kindly explain how it could be done

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Semiconductors and Converters에 대해 자세히 알아보기

질문:

2012년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by