Simulinkモデルの画面に合わせた表示について
32 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
motohiro sugimoto
le 19 Mar 2019
Réponse apportée : motohiro sugimoto
le 4 Avr 2019
Simulinkモデルをウィンドウサイズに合わせて表示する方法に、スペースキーを押す(或いは、表示メニュー→ビューに合わせる)
がありますが、これらを、モデルすべてのサブシステム階層に適用するスクリプトを記述するにはどのようにすればよいでしょうか。
0 commentaires
Réponse acceptée
Naoya
le 1 Avr 2019
コマンドラインレベルでSimulinkモデルをウィンドウサイズに合わせる方法としては、次のコマンドで可能です。
>> set_param(gcs, 'ZoomFactor', 'FitSystem')
モデルすべてに対して適用する場合は、以下手順で実現できると思います。
% サンプルモデルの起動
>> f14
% root階層に対してズームフィットさせる
set_param(bdroot,'ZoomFactor','FitSystem');
% モデルの各サブシステムに対してズームフィットさせる
syss = find_system(bdroot,'BlockType','SubSystem');
for n = 1:length(syss)
set_param(syss{n},'ZoomFactor','FitSystem');
end
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur プログラムによるモデル編集 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!