How to clear the MATLAB Runtime cache?

조회 수: 468 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2024년 7월 31일
편집: MathWorks Support Team 2025년 5월 5일
How to clear the MATLAB Runtime (formerly MATLAB Runtime or MCR) cache?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 5월 5일
편집: MathWorks Support Team 2025년 5월 5일
1) Locate the MATLAB Runtime cache folder. On Windows, the typical path depends on the MATLAB Runtime version:
Before R2024b:
C:\Users\<username>\AppData\Local\Temp\<username>\mcrCacheX.Y
Since R2024b:
C:\Users\<username>\AppData\Local\MathWorks\MatlabRuntimeCache\RXXXXx
For more information on the default locations across platforms, see the MATLAB Runtime Component Cache documentation.
If MATLAB is available on the machine, you can determine the cache folder by running the following command in MATLAB:
>> mcrcachedir
.
2) Navigate to the parent directory (for example., C:\Users\<username>\AppData\Local\Temp\<username>\) and delete the relevant "mcrCacheX.Y" or "RXXXXx" folder used by your application.
If you are unsure which version is used, you may delete all "mcrCacheX.Y" or "RXXXXx" folders in this directory. This will clear the MATLAB Runtime cache. 
3) After deleting the cache folder(s), restart the application. 

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by