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

27 次查看(过去 30 天)
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.

类别

Help CenterFile Exchange 中查找有关 Semiconductors and Converters 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by