フィルターのクリア

Error in save to mat file

213 ビュー (過去 30 日間)
Praveen Kumar Nambisan T M
Praveen Kumar Nambisan T M 2021 年 6 月 18 日
I have got following error while saving the agent for a DQN-RL problem. The error doesnt pop-up always, however, most of the time the saved .mat file is corrupt Similar problem in another PC too. Both the PC is having enough space in the HDD and of 64GB RAM. Sometimes it saves successfully with each MAT file of 1GB size,otherwise, the corrupted MAT files are in KBs.
Version: MATLAB 2021a
Error:
Error using save
Unable to save file 'C:\Users\Documents\MATLAB 2021\initial_agent.mat'. The file could not be closed, and might now be corrupt.
Error in DQN__Training (line 101)
save("initial_agent","agent")
  4 件のコメント
Praveen Kumar Nambisan T M
Praveen Kumar Nambisan T M 2022 年 2 月 11 日
Thanks for the answer. It might be due to network file system as there was no limitations in the disk space.
However, I have reinstalled the MATLAB and it solved the issue.
Sebastian Theilenberg
Sebastian Theilenberg 2023 年 9 月 5 日
For future reference, because the error message doesn't really point towards this:
I had the same error in Matlab 2022b both on the local SSD and when saving to a network storage. I was able to fix it using version '-v7.3'.
I'm not sure why this fixed the issue (e.g., the file size was only about 240 MB), but it's worth a try.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by