How to batch close the open variable window

I checked the values of many variables, is there any way to batch close these Windows?

回答 (1 件)

Matt J
Matt J 2024 年 10 月 15 日

0 投票

You can try,
com.mathworks.mlservices.MatlabDesktopServices.getDesktop.closeGroup('Variables')

4 件のコメント

D.D Xie
D.D Xie 2024 年 10 月 15 日
I appreciate your help, but this code doesn't work. Just in case you didn't get the point, I've attached a picture below of the "variables window" I expect to close.
Matt J
Matt J 2024 年 10 月 15 日
What OS are you using?
D.D Xie
D.D Xie 2024 年 10 月 15 日
windows 10
Matt J
Matt J 2024 年 10 月 15 日
Dunno. Works fine for me.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeVariables についてさらに検索

製品

リリース

R2023b

質問済み:

2024 年 10 月 15 日

コメント済み:

2024 年 10 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by