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.
To safely delete the DMR files:
- Close all open instances of MATLAB.
- Locate the Temporary Directory:
- On Windows, open Windows Explorer and type %temp% to access the temp folder (usually C:\Users\username\AppData\Local\Temp).
- Alternatively, use the MATLAB command tempdir to open the temp folder.
- Search for ".DMR" files and delete them.