Powergui の FFT 解析ツールのデータにコマンドラインからアクセスするには、どのようにしますか?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SimPowerSystems 5.1 (R2009a) のブロックを含む電気系のモデルの実行後、 Powergui を開き、 FFTAnalysis を選択し、シミュレーションからの周波数領域の情報を表示します。
MATLAB コマンドプロンプトからこれらのデータにアクセスする方法を教えて下さい。
Réponse acceptée
MathWorks Support Team
le 9 Juin 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
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simscape Electrical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!