gpt4 book ai didi

matlab - 通过命令关闭变量编辑器

转载 作者:太空宇宙 更新时间:2023-11-03 19:52:26 24 4
gpt4 key购买 nike

有没有办法使用命令从 MATLAB 关闭变量编辑器?

我假设这可以通过获取变量编辑器的属性来完成。

最佳答案

你可以这样做:

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

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

注意:如果需要,请使用 desktop.getGroupTitles() 获取其他窗口的名称('Command History'、'Workspace' 等...)。

关于matlab - 通过命令关闭变量编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24185553/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com