Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Close Variable Editor by commands

Tags:

matlab

Is there a way to close the Variable Editor from MATLAB by using commands?

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

like image 784
ironzionlion Avatar asked Jun 12 '14 13:06

ironzionlion


1 Answers

You can do it like this:

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

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

NB: If you neeed to, use desktop.getGroupTitles() to obtain the name for other windows ('Command History', 'Workspace', etc...).

like image 164
CitizenInsane Avatar answered Nov 15 '22 06:11

CitizenInsane