Simulink 9.0 (R2017b) のスコープ の画面をコマンドで閉じるにはどうすればよいですか?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 Jan 2018
Edited: MathWorks Support Team
on 17 Jan 2018
たくさん Scope ウィンドウを持つモデルがあります。MATLAB ファイルの close all のように一度にすべての Scope ウィンドウを閉じたいです。
Accepted Answer
MathWorks Support Team
on 17 Jan 2018
下記は、オープンしているすべての Simulink の Scope や Signal Viewer を閉じる場合のコードです。
shh = get(0,'ShowHiddenHandles'); % ShowHiddenHandles の現在の設定値を取得
set(0,'ShowHiddenHandles','on'); % on に変更
hscope = findobj(0,'Type','Figure','Tag','SIMULINK_SIMSCOPE_FIGURE'); % Scope ハンドルの取得
close(hscope); % Scope のクローズ
set(0,'ShowHiddenHandles', shh); % ShowHiddenHandles を元の設定に戻す
0 Comments
More Answers (0)
See Also
Categories
Find more on Sinks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!