"Matlab has encountered an internal problem and needs to close error" in matlab 2009b

10 views (last 30 days)
Hello All,
Im running a batch of testcases.
In the script I'm using if loop and for loop.
I tried to evaluate each line using breakpoint to see where the error is occuring
Seeing this error "Matlab has encountered an internal problem and needs to close error" at the if and for loop.
Suspecting it is because of the memory issue.
In the command window, I typed memory. I saw the below
Maximum possible array: 18594 MB (1.950e+010 bytes) *
Memory available for all arrays: 18594 MB (1.950e+010 bytes) *
Memory used by MATLAB: 1260 MB (1.321e+009 bytes)
Physical Memory (RAM): 32457 MB (3.403e+010 bytes)
Looks like Matlab memory usage is OK but not sure whats causing the issue
Can someone suggest ideas on how to remove the above error?
And also how to increase the Java heap memory in matlb 2009b?
Thank you
  1 Comment
dpb
dpb on 10 Aug 2023
For such an old release of MATLAB, there's not going to be a lot of recourse, methinks. I don't know, I presume maybe you could still check for any previously uninstalled service packs to see if that might fix a problem.
Can you run anything or is it just this particular script that causes the problem? If the latter, it would probably be possible to rewrite the code to get around the issue; would perhaps help to know what, specifically, the code is -- attach the m-file here; unless it's quite large, just pasting the text and using the code button to format it is simplest.

Sign in to comment.

Answers (0)

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!