How do I stop Matlab from creating temporary files (2020b and newer) or delete them programmatically?
24 ビュー (過去 30 日間)
古いコメントを表示
I used to use Matlab 2018b for running simulations in both Matlab and Simulink without issue. I upgraded to 2020b and noticed Matlab now creates temporary files that are stored in my C:\Users\<username>\AppData\Local\Temp folder. Running Simulink.sdi.clear seems to help, but only when the simulation completely runs. Is there an easy way to stop Matlab from creating these files or a way to programatically delete temp files created by Matlab that are no longer being used?
If this question has already been answered, please send me the link. I've looked but I haven't found what I am looking for yet.
0 件のコメント
回答 (1 件)
Steven Lord
2024 年 2 月 14 日
From your description and your mention of Simulink.sdi.clear resolving the problem, this sounds like it might be Bug Report 2507175. Can you try simulating your model in release R2021b (which the Bug Report lists as having fixed the bug) and see if the behavior persists?
参考
カテゴリ
Help Center および File Exchange で Reporting and Database Access についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!