How to batch close the open variable window

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

Answers (1)

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

4 Comments

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.

Sign in to comment.

Categories

Products

Release

R2023b

Asked:

on 15 Oct 2024

Commented:

on 15 Oct 2024

Community Treasure Hunt

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

Start Hunting!