- save intermediate data
- use try and catch to avoid errors
- write code to be robust for all known cases, incl. edge-cases.
- record and re-run failed cases only.
- ...
stop, record and continue a loop function
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have problem in running a for loop function. Let say I'm running 5 loop function, but at 3rd loop, there was an error and I have to stop it manually (press Ctrl+C). Then unfortunately all the previous 2 results were gone. So how can I stop the function without missing the results and at the same time, automatically continue to the next loop? Thanks
2 个评论
Stephen23
2017-5-22
@Fadzli: Some options:
What you use depends on your data and your workflow.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!