How to batch close the open variable window

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

Risposte (1)

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

4 Commenti

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?
windows 10
Dunno. Works fine for me.

Accedi per commentare.

Categorie

Prodotti

Release

R2023b

Richiesto:

il 15 Ott 2024

Commentato:

il 15 Ott 2024

Community Treasure Hunt

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

Start Hunting!

Translated by