필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

problem of memory

조회 수: 1 (최근 30일)
Zied
Zied 2012년 1월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I'm running a script to generate maps. At the end of processing, the memory that was allocated is not released and the process is completely blocked so I can not even save my outputs and i'm forced to exit Matlab. Do you have any solution for this?
Thanks in advance

답변 (2개)

Jonathan Sullivan
Jonathan Sullivan 2012년 1월 11일
You are using your paging files. You have a few options:
  1. Buy more RAM
  2. Break up your operation into many steps
  3. Try to rewrite your code to clear variables after use, so as to decrease the memory requirements
  댓글 수: 1
Zied
Zied 2012년 1월 11일
Thanks

C.J. Harris
C.J. Harris 2012년 1월 11일
Also ensure that if you are generating Matlab Figures (as an intermediate step) with the 'Visible' property set to false that you close them after use. I know this has caught me out in the past.
  댓글 수: 6
C.J. Harris
C.J. Harris 2012년 1월 11일
To show the figure again set its visiblity to true:
set(h, 'Visible','on');
Zied
Zied 2012년 1월 11일
i will test this. Thanks a lot Chris

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by