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.
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...).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With