how to avoid crashing the computer while running heavy scripts?

조회 수: 10 (최근 30일)
Kobi
Kobi 2014년 9월 30일
답변: Zoltán Csáti 2014년 10월 3일
sometimes when i run a heavy calculation with huge Matrics the computer start to run slowly if i need to stop the program i usually move to the command window and hit Ctrl+C this does not work all the time and sometime i need to hit the key combination many times is there an easy way to stop the Matlab? or maybe use a code that avoid this?
also i use pc with 4GB Ram and i'm limited to matrix size of in about 7000X7000, i tried to use the swap memory (Hard Drive) instead of the Ram but in Matlab there is no effect
  댓글 수: 1
Image Analyst
Image Analyst 2014년 9월 30일
I don't think there's enough information here for anyone to solve the problem. Perhaps if you uploaded the script and tell us how long until it hangs.....

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

답변 (1개)

Zoltán Csáti
Zoltán Csáti 2014년 10월 3일
Perhaps this is because MATLAB is working on high priority. Try to set it to normal or low priority to maintain responsiveness. A better way is to write a function that limits the maximum input size available for your specific calculation. I also experienced this phenomenon which made me restart my computer.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by