How can I programmatically close a Tab in Live Editor?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Otto Liljansalo
am 12 Sep. 2022
Kommentiert: Otto Liljansalo
am 30 Sep. 2022
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.
0 Kommentare
Akzeptierte Antwort
Jacky Tsai
am 23 Sep. 2022
Bearbeitet: Jacky Tsai
am 23 Sep. 2022
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 Kommentare
Jacky Tsai
am 30 Sep. 2022
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!