Using load function unexpectedly deleting original .mat file

6 Ansichten (letzte 30 Tage)
Sam Firminger
Sam Firminger am 23 Aug. 2017
Kommentiert: Sam Firminger am 25 Aug. 2017
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 Kommentare
Image Analyst
Image Analyst am 23 Aug. 2017
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 am 25 Aug. 2017
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by