Powergui の FFT 解析ツールのデータに​コマンドラインからア​クセスするには、どの​ようにしますか?

1 view (last 30 days)
MathWorks Support Team
MathWorks Support Team on 9 Jun 2010
SimPowerSystems 5.1 (R2009a) のブロックを含む電気系のモデルの実行後、 Powergui を開き、 FFTAnalysis を選択し、シミュレーションからの周波数領域の情報を表示します。
MATLAB コマンドプロンプトからこれらのデータにアクセスする方法を教えて下さい。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Jun 2010
MATLAB コマンドプロンプトから Powergui の FFT 解析ツールのデータにアクセスするためには、
POWER_FFTSCOPE 関数を、使用します。下記手順を実行することで、 MATLAB ワークスペース上に FFT 解析ウィンドウからのデータをエクスポートすることができます。
% Powergui の FFT解析後にモデルに対して実行
sps = power_fftscope(bdroot)
%サンプル時間
Ts = sps.FFTdata.t(2)-sps.FFTdata.t(1)
%サイクルごとのサンプル数
Sc = 1/(Ts*sps.fundamental)
%DC 成分
DC = sps.mag(1)
% 基本周波数
Fc = sps.fundamental
%Total harmonic distortion
THD = sps.THD

More Answers (0)

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!