如何关闭所有的脚本编辑窗口?

52 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 11 Sep 2020
我正在编辑多个函数文件,如何将他们一起关闭?一个一个点关闭有点麻烦。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Sep 2020
当我们编写脚本,进入调试模式后单步执行(step in),此时会逐步打开多个函数文件,当调试结束后,可以通过以下指令,将他们一起关闭:
>> closeNoPrompt(matlab.desktop.editor.getAll);
您可以多次点击新建脚本,然后执行这行命令来尝试。需要说明的是,实时脚本不会被关闭。

More Answers (0)

Categories

Find more on Adding custom doc in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!