How can I programmatically close a Tab in Live Editor?

20 次查看(过去 30 天)
I want to open a file in the Live Editor to execute its contents and then close it to avoid having too many Tabs open. The command open works fine but close('nameOfFile') does not work.

回答(1 个)

Jacky Tsai
Jacky Tsai 2022-9-23
编辑:Jacky Tsai 2022-9-23
Hi Otto, you can take a look at this thread: https://www.mathworks.com/matlabcentral/answers/507998-how-do-i-close-all-open-scripts-in-the-editor-window. Essentially this boils down to the use of MATLAB Editor API:
doc matlab.desktop.editor
  5 个评论
Jacky Tsai
Jacky Tsai 2022-9-30
Hi @Otto Liljansalo, thanks for the response! Please consider upgrading to R2020a (or later), where the support of live scripts using MATLAB Editor API has been introduced.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Time Series Events 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by