Using load function unexpectedly deleting original .mat file

조회 수: 6 (최근 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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by