How to batch close the open variable window

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

Réponses (1)

Matt J
Matt J le 15 Oct 2024
You can try,
com.mathworks.mlservices.MatlabDesktopServices.getDesktop.closeGroup('Variables')

4 commentaires

D.D Xie
D.D Xie le 15 Oct 2024
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 le 15 Oct 2024
What OS are you using?
D.D Xie
D.D Xie le 15 Oct 2024
windows 10
Matt J
Matt J le 15 Oct 2024
Dunno. Works fine for me.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Variables dans Centre d'aide et File Exchange

Produits

Version

R2023b

Question posée :

le 15 Oct 2024

Commenté :

le 15 Oct 2024

Community Treasure Hunt

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

Start Hunting!

Translated by