Command to exit to the base workspace?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Leo Simon
am 7 Aug. 2020
Kommentiert: Leo Simon
am 7 Aug. 2020
Is there a command "between" return and quit that will exit from a workspace but leave me in the base workspace? return puts me into the caller workspace while quit exits matlab altogether. I simply want to close the program I'm in and get back to the >> prompt. I could of course execute a keyboard command, and then dbquit all, but I'd much prefer to be able to do it in one step.
3 Kommentare
Akzeptierte Antwort
Stephen23
am 7 Aug. 2020
error()
As Bruno Luong pointed out, this does not work inside try-catch and also prints text to the command window.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown 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!