Effacer les filtres
Effacer les filtres

Simulinkモデ​ルの画面に合わせた表​示について

29 vues (au cours des 30 derniers jours)
motohiro sugimoto
motohiro sugimoto le 19 Mar 2019
Simulinkモデルをウィンドウサイズに合わせて表示する方法に、スペースキーを押す(或いは、表示メニュー→ビューに合わせる)
がありますが、これらを、モデルすべてのサブシステム階層に適用するスクリプトを記述するにはどのようにすればよいでしょうか。

Réponse acceptée

Naoya
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

Plus de réponses (1)

motohiro sugimoto
motohiro sugimoto le 4 Avr 2019
回答ありがとうございました

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!