MATLAB crashes when plotting many figures
이전 댓글 표시
I was trying to plot hundreds of figures in for loops. MATLAB can run pretty well at the begining but it suddenly crashes without generating any error. It just shuts down without any signs. The figure that crashes MATLAB is corrupted with 0 kb in size. Additionally, the corrupted figure can be different when eveytime I try to run the code. I notice that whenever MATLAB shuts down, the GPU 3D rises to 100% rapidly (stays at 20% when matlab is running well), drops dramatically to 0% and then goes back to normal. My GPU is intel® UHD Graphics 630. CPU and memory are fine when matlab shuts down.
댓글 수: 5
Voss
2021년 12월 1일
You mention a figure with size 0 kb; does this imply that you are saving each figure to disk? If so, does it make sense to delete each figure after you save it (if you aren't already deleting them)?
Runbo Gao
2021년 12월 1일
Voss
2021년 12월 1일
Yes, I think "deleting" and "closing" mean the same thing in this context. I wanted to find out if there are ever hundreds of figures around at any one time (whether they are visible or not), but it sounds like you avoid this by closing each one in turn, so I'm not really sure what could be going on.
Is it feasible to post the code you're running when this problem occurs?
Runbo Gao
2021년 12월 1일
Voss
2021년 12월 1일
Excellent, glad it's working!
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!