How to call a defined function when any error occur instead of termination?
1 回表示 (過去 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 で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!