Restart variable from a middle point
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a for loop for a variable, let's call it X=linspace(a,b,c);
Now, imagine that I am calculating a variable M that depends on the values of X and suddenly Matlab stops.
How can I be sure that I store M until that point?
How can I restart the loop from the exact point that the calculation stopped?
Thanks in advance!
0 个评论
回答(1 个)
Matt J
2019-2-11
You could save M to a .mat file in every iteration of the loop. That will slow things down, however.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!