Matlab closes in the middle of a loop
Show older comments
I have a for loop. Sometime it executes normally. And from time to time, matlab closes in the middle of the loop without any errors. This is driving me crazy. What could be the issue here?
2 Comments
Geoff Hayes
on 25 Aug 2020
berk - what is the body of your loop doing? How many iterations in the loop? Is it always the same loop that causes MATLAB to crash?
Duijnhouwer
on 25 Aug 2020
yes, some code would be helpful
Answers (1)
Sudhakar Shinde
on 29 Sep 2020
0 votes
I am not sure you will get exact answer but this may help:
- Increase java heap memory from preferences.

Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!