How can I programmatically close a Tab in Live Editor?

조회 수: 3(최근 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.

답변(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
Otto Liljansalo
Otto Liljansalo 2022년 9월 30일
Ok, thank you for your help in this matter! /Otto

댓글을 달려면 로그인하십시오.

범주

Find more on Live Scripts and Functions in Help Center and File Exchange

태그

Community Treasure Hunt

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

Start Hunting!

Translated by