How can I programmatically close a Tab in Live Editor?

11 ビュー (過去 30 日間)
Otto Liljansalo
Otto Liljansalo 2022 年 9 月 12 日
コメント済み: Otto Liljansalo 2022 年 9 月 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.

採用された回答

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.
Otto Liljansalo
Otto Liljansalo 2022 年 9 月 30 日
Ok, thank you for your help in this matter! /Otto

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by