Command to exit to the base workspace?
4 次查看(过去 30 天)
显示 更早的评论
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.
采纳的回答
Stephen23
2020-8-7
error()
As Bruno Luong pointed out, this does not work inside try-catch and also prints text to the command window.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!