How to save entire workspace?
조회 수: 48 (최근 30일)
이전 댓글 표시
Hello everyone! Question. Is it possible to save the workspace completely, that is, including the workspaces of all functions, persistent variables, etc.? In order to be able to start at a desired moment, when it is desired for some event.
댓글 수: 0
채택된 답변
Adam
2014년 12월 4일
Workspaces of functions?
In the vast majority of cases only 1 function is ever running (and thus has a workspace) at any given moment and the only way saving its workspace would make sense is if you interrupt that function midway through, in which case you could just save its workspace with
save( filename )
as you would for the main workspace to save all variables in it.
save( filename, '-append' )
will append to an existing workspace if you save the base workspace then want to add to it with a breakpoint in a function workspace.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!