Matlab closes in the middle of a loop

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

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?
yes, some code would be helpful

Sign in to comment.

Answers (1)

I am not sure you will get exact answer but this may help:
  1. Increase java heap memory from preferences.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Asked:

on 25 Aug 2020

Answered:

on 29 Sep 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!