Using load function unexpectedly deleting original .mat file

5 vues (au cours des 30 derniers jours)
Sam Firminger
Sam Firminger le 23 Août 2017
Commenté : Sam Firminger le 25 Août 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 commentaires
Image Analyst
Image Analyst le 23 Août 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 le 25 Août 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by