필터 지우기
필터 지우기

Matlab exits automatically before the program is finished.

조회 수: 2 (최근 30일)
jessie sun
jessie sun 2022년 3월 16일
댓글: Walter Roberson 2023년 9월 15일
Matlab program has been running for one night. The next day, it found that it quit automatically without outputting the results. What's the matter? The program has a lot of computation and should not be finished. Why automatically quit?

답변 (2개)

Walter Roberson
Walter Roberson 2022년 3월 16일
MATLAB can end up quitting by itself if it runs out of memory.

Tomas Nordin
Tomas Nordin 2023년 9월 15일
A follow-up question. And when this happens, (matlab quits itself due to running out of memory), should I expect some sort of warning message from it. The session is logged by calling matlab with the -logfile <f> option.
This is with matlab 2016.
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 9월 15일
Sadly, no, when MATLAB runs out of memory, it can be during internal operations where it has not specifically protected against running out of memory, so it can end up using invalid memory addresses, and getting whatever OS behaviour when that happens, which might or might not result in a message.
That said: historically I have observed MATLAB quitting when running out of memory, in an environment where if it had attempted to access an invalid address, that the operating system would normally have produced a report, but no report was produced. Which implies that MATLAB did have some kind of code that caught the problem and deliberately quit without a message.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by