Using load function unexpectedly deleting original .mat file

5 ビュー (過去 30 日間)
Sam Firminger
Sam Firminger 2017 年 8 月 23 日
コメント済み: Sam Firminger 2017 年 8 月 25 日
When I load variables into the workspace from a .mat file, MATLAB then deletes the original file.
Does anybody know why this is happening?
Thank you.
  4 件のコメント
Image Analyst
Image Analyst 2017 年 8 月 23 日
Is that the bad code, or the circumvented/working code? I don't see any line of code that would delete a .mat file, unless main() does it internally.
Sam Firminger
Sam Firminger 2017 年 8 月 25 日
Hello,
I found the bug. When I was saving a variable to a file elsewhere in the code, I was using the same filename which caused some issues. Nevertheless thank you for your help.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by