Is it possible to load mcr once at windows startup

조회 수: 9 (최근 30일)
Ganesh  Ala
Ganesh Ala 2018년 10월 2일
답변: Jim David 2018년 10월 8일
I am trying to use matlab standalone program on my laptop created on AppDesigner and it is incredibly slow for my liking, but when I try to open the program on my computer with MATLAB on it, it is starting up in reasonable times. So, I was wondering if it is possible to load the matlab mcr once whilst starting the computer so I do not have to wait for the mcr to load whenever I open the standalone program.

채택된 답변

Jim David
Jim David 2018년 10월 8일
It is currently not possible to load the MCR once and have that be sufficient for the executions of the standalone application. Please note that initializing MCR should take relatively the same amount of time as starting an instance of MATLAB.
However, performance improvements may be obtained by using the -C flag with the mcc command while creating the standalone application. Assuming we have a file named appName.m, the following command would be an example.
>> mcc -mC appName.m
More information about the mcc command can be found here:
The ctf file is extracted before the application is run. Improved performance when using the -C flag would indicate an issue with the location that the ctf file is being extracted to. This could be changed to a more appropriate path by changing the MCR_CACHE_ROOT environment variable. Information about MCR_CACHE_ROOT can be found through the following link:

추가 답변 (0개)

카테고리

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