Using load function unexpectedly deleting original .mat file

4 visualizaciones (últimos 30 días)
Sam Firminger
Sam Firminger el 23 de Ag. de 2017
Comentada: Sam Firminger el 25 de Ag. de 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 comentarios
Image Analyst
Image Analyst el 23 de Ag. de 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 el 25 de Ag. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by