Matlab slows down when the window is minimized

조회 수: 22 (최근 30일)
Cinzia Tomaselli
Cinzia Tomaselli 2023년 10월 25일
답변: Shivam Lahoti 2023년 11월 3일
Hi everyone,
I'm running some heavy code and found that when I reduce the Matlab window, the code execution significantly slows down. How can I address this issue? I've already tried using the task manager to give Matlab a higher priority, but it didn't work. Thank you in advance.
  댓글 수: 4
Bruno Luong
Bruno Luong 2023년 10월 25일
편집: Bruno Luong 2023년 10월 25일
Shooting in the dark, but on some windows OS there is a setting of "Game Mode" when it turns on, the background proocess are slow down? You might check it and turn the Game mode off if applicable.
Cinzia Tomaselli
Cinzia Tomaselli 2023년 10월 25일
Good guess, I tried, but unluckly it still does not work

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

답변 (1개)

Shivam Lahoti
Shivam Lahoti 2023년 11월 3일
Hi Cinzia Tomaselli,
As per my understanding, you want to execute an extensive script comprising various logical loops. But when you minimize the MATLAB window, a considerable drop in execution speed is observed.
I can understand that you have tried to prioritize the MATLAB execution in CPU and then could not witness a boost in execution. I would suggest the following approaches, which might work in favor of solving the problem.
Approach 1:
Try running the script in the background. You can create MATLAB scripts that can be executed in a headless mode, which means they do not require any graphical output or user interaction.
Please refer to this answer to get some help in understanding the approach.
Approach 2:
Create a MATLAB Executable file also known as MEX file. This quick start guide focuses on how to generate MEX code to possibly speed up your MATLAB design.
I hope you find one of the approaches helpful.
Regards,
Shivam Lahoti.

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by