How to clear the MATLAB Runtime cache?

How to clear the MATLAB Runtime (formerly MATLAB Runtime or MCR) cache?

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 17 de Jul. de 2026 a las 0:00
Editada: MathWorks Support Team el 17 de Jul. de 2026 a las 10:39
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\R20XXy
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 "R20XXy" folder used by your application.
If you are unsure which version is used, you may delete all "mcrCacheX.Y" or "R20XXy" folders in this directory. This will clear the MATLAB Runtime cache. 
3) After deleting the cache folder(s), restart the application. 

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Preguntada:

el 31 de Jul. de 2024

Editada:

el 17 de Jul. de 2026 a las 10:39

Community Treasure Hunt

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

Start Hunting!

Translated by