필터 지우기
필터 지우기

Quitting matlab unresponsive due to memory (maybe)

조회 수: 2 (최근 30일)
htrh5
htrh5 2015년 7월 31일
댓글: Matt J 2015년 7월 31일
When I try to make matlab deal with, say 16384*16384 matrix (or maybe the function needs to use a few of such matrices in it), matlab stops working and it makes the whole computer unresponsive. Now, my computer certainly has 2GB to spare (which is what I think such a matrix would require) but it stops working none the less.
I am quite sure this is a global problem, I have experienced this on 3 separate computers that run win7 and have 8gb ram. If this problem can be solved, it would be the best.
But in case matlab simply cannot deal with 2GB matrices, I'd like to be able to kill matlab without shutting down the computer using the power button.
If matlab simply cannot be shutdown when it is unresponsive, I'd at least want to be able to make sure matlab never even attempts to execute a code that would require it to create such a matrix.
  댓글 수: 1
Matt J
Matt J 2015년 7월 31일
So, even the Task Manager cannot be invoked (by right clicking on the task bar) when the computer freezes?In any case, a good trouble shooting strategy would be to use DBSTEP or the debugger GUI to step through your code and identify at which line the computer hangs.

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

답변 (1개)

Amr Hashem
Amr Hashem 2015년 7월 31일
you can exit from some matlab versions by:
- Ctrl + C
or
- Ctrl + Break
  댓글 수: 1
htrh5
htrh5 2015년 7월 31일
ctrl c or ctrl break works only if matlab is still responsive. this causes the computer to simply die

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

Community Treasure Hunt

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

Start Hunting!

Translated by