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 个)

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

4 个评论

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.
What OS are you using?
Dunno. Works fine for me.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Variables 的更多信息

产品

版本

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