Matlab 2014a deletes M files in actual directory when exit
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
Matlab 2014a deletes M files which are stored in actual directory when Matlab is exit.
Do you know why and how I can fix this?
Thanks in advance.
Best regards, Helmuth
댓글 수: 7
Star Strider
2014년 8월 10일
As part of your finish.m file, two items you could consider are:
- movefile to copy your files to a back-up directory (and perhaps doing that again in reverse in your startup.m file)
- savepath to save your entire search path so it is created automatically at startup the next time you launch MATLAB.
This same problem came up in the last two or three weeks, but I don’t know what the fix was (if one was found) or if the details were similar to yours.
답변 (4개)
Image Analyst
2014년 8월 10일
편집: Image Analyst
2014년 8월 10일
It doesn't do that for me. What version are you using (official, trial, educational, or student)? What operating system? What is the folder name? If you bring up a window looking at the files (like Windows Explorer), and you see the files there, then when you close MATLAB, do all those files vanish? Do they appear in the recycle bin? Do you have a finish.m file that automatically gets run when MATLAB shuts down that might perhaps delete everything?
Jan
2014년 8월 10일
Beside finish.m other functions are evaluated automatically when a Matlab session is finished:
- CloseRequestFcn of figures, which might be invisible and hidden
- mexAtExit functions define in Mex files
- The StopFcn of audioplayer objects (in some Matlab versions, but seemed to caused a crash)
댓글 수: 2
Image Analyst
2014년 8월 10일
You should not have to do that. I suggest you call the Mathworks to track down that very unexpected behavior, if you can ever get it to repeat again.
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!