当我们编写脚本,进入调试模式后单步执行(step in),此时会逐步打开多个函数文件,当调试结束后,可以通过以下指令,将他们一起关闭:
>> closeNoPrompt(matlab.desktop.editor.getAll);
您可以多次点击新建脚本,然后执行这行命令来尝试。需要说明的是,实时脚本不会被关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!