Why does my .mat file keep getting corrupted?? 😖
23 views (last 30 days)
At the beginning of my script I load my workspace variables..
At the end of my script I save.
I can run the script on the same day without problems. If I come back a month later, I get an error about the file being corrupt and it won't load at all or, like today, it will load some of the variables and show this error: Error using load
Cannot read file /Documents/MATLAB/SubAligner/SA_Measurements.mat.
I've been through many forum posts, but can't find a solution. What am I doing wrong??