.m files keep getting corrupted?
조회 수: 16 (최근 30일)
이전 댓글 표시
I'm on 2022a, and recently have had multiple .m files change from UTF-8 encoding to windows-1252 encoding or something else. The code turns into mostly gibberish or get replaced by blank spaces. I have been working on two computers, saving onto the same external drive. Luckily, I have the original code backed up. But, why is this happening and can I restore the original files somehow? Even a .mat file seemed to have been affected, where Matlab refuses to load the contents. Thanks.
답변 (1개)
Image Analyst
2023년 11월 3일
Chances are one of your scripts or functions is overwriting them without you being aware of it. Can you do anything to reproduce it? Like does it always corrupt some files after you run some program? Or is it completely random?
참고 항목
카테고리
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!