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!