필터 지우기
필터 지우기

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일

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 CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by