How to call a defined function when any error occur instead of termination?
조회 수: 4 (최근 30일)
이전 댓글 표시
How can I call a defined function when some error occur while executing a script or functions instead of termination by matlab. I need this because I want to save variables which are generated before error occured. Any Help
댓글 수: 0
답변 (1개)
Wayne King
2013년 3월 12일
Why don't you use the debugging tools and set breakpoints. If it occurs in a function, you can use assignin() to create variables that persist in the workspace after you exit the debugger.
댓글 수: 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!