Borrar filtros
Borrar filtros

Close MATLAB from the keyboard

6 visualizaciones (últimos 30 días)
GEORGIOS BEKAS
GEORGIOS BEKAS el 8 de En. de 2018
Respondida: Steven Lord el 8 de En. de 2018
I would like to save a file or close it automatically by running a command. Something like: keyboard ("EXIT")

Respuesta aceptada

Birdman
Birdman el 8 de En. de 2018

Más respuestas (2)

Sean de Wolski
Sean de Wolski el 8 de En. de 2018
ctrl+s
ctrl+q
?

Steven Lord
Steven Lord el 8 de En. de 2018
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.

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by