フィルターのクリア

Close MATLAB from the keyboard

6 ビュー (過去 30 日間)
GEORGIOS BEKAS
GEORGIOS BEKAS 2018 年 1 月 8 日
回答済み: Steven Lord 2018 年 1 月 8 日
I would like to save a file or close it automatically by running a command. Something like: keyboard ("EXIT")

採用された回答

Birdman
Birdman 2018 年 1 月 8 日

その他の回答 (2 件)

Sean de Wolski
Sean de Wolski 2018 年 1 月 8 日
ctrl+s
ctrl+q
?

Steven Lord
Steven Lord 2018 年 1 月 8 日
If you want to close MATLAB using commands or shortcuts, see Birdman and Sean's answers.
If you want to "save a file or close it automatically" when that file is open in the MATLAB Editor rather than closing MATLAB itself, you can use the matlab.desktop.editor API.
help matlab.desktop.editor
help matlab.desktop.editor.Document
If you've opened a file using the low-level file I/O command fopen, use the fclose command to close it when you're done working with it.

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by