Simulink 9.0 (R2017b) のスコープ の画面をコマンドで閉じるにはどうすればよいですか?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 9 Jan. 2018
Bearbeitet: MathWorks Support Team
am 17 Jan. 2018
たくさん Scope ウィンドウを持つモデルがあります。MATLAB ファイルの close all のように一度にすべての Scope ウィンドウを閉じたいです。
Akzeptierte Antwort
MathWorks Support Team
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sinks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!