Close the variable editor with commands

Is there a way to close the variable editor from MATLAB using commands?

I assume this can be done by getting the properties of the Variable Editor.

+4
source share
1 answer

You can do it as follows:

% Get access to matlab desktop
desktop = com.mathworks.mde.desk.MLDesktop.getInstance();

% Close the variable editor
desktop.closeGroup('Variables');

Note. If you want, use desktop.getGroupTitles()to get a name for other windows ("Command History", "Workspace", etc.).

+8
source

Source: https://habr.com/ru/post/1544337/


All Articles