Can I remove MATLAB DMR files from the temp directory?

I have been using MATLAB & Simulink for a few months, and my C drive now contains many MATLAB temporary files with the extension .dmr. Can I delete these files?

 Accepted Answer

Yes, any DMR files in the temporary directory can be safely deleted while MATLAB is closed.
DMR files, or "Data Model Repository" files, are typically created by the Simulation Data Inspector (SDI) in MATLAB and Simulink. In newer MATLAB versions, these files are automatically deleted when MATLAB closes. However, if MATLAB crashes, DMR files may remain in the temporary directory.

How to safely delete DMR files:

1. Enter the "tempdir" command in MATLAB to locate the temp directory:
>> tempdir
ans =
'C:\Users\username\AppData\Local\Temp\'
On Windows, you can directly open the Explorer by typing the following in MATLAB:
>> winopen(tempdir)
Alternatively, open Windows Explorer and type %temp% to access the temp folder.
2. Close all open instances of MATLAB.
3. Search for ".dmr" files and delete them.

    Further reading:

    For more details on DMR files and size management, refer to the following MATLAB Answer:

    More Answers (0)

    Categories

    Products

    Release

    R2015a

    Community Treasure Hunt

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

    Start Hunting!