Is there issue with .mat files in matlab R2018b?
1 view (last 30 days)
Show older comments
Hello, I have some issue with mat file corrupted with matlab r2018. I did not have the issue before. Does someone have the same issue?
11 Comments
Guillaume
on 21 Jan 2019
If you indeed have only 8 GB of free disk space, then you can expect problems due to low disk space. The pagefile (swap space) on its own is over 8GB on my system.
The other possibility is that your hard disk is failing. The problem is clearly with disk IO if you get an error while writing the file.
Answers (1)
Steven Lord
on 18 Jan 2019
Is this part of the error message exactly how it appears in the Command Window?
Can not write file C:\Users\STG\Desktop\ART_LTS_FUJ_Loop3\Results Simu\LMP1\[Auto Simu - Swept
Parameters] Results\1819R04_FUJ_Loop4_RRH_4.mat.
If so your directory path may include a newline character and that's not allowed according to this page on Microsoft's website. Compare S1 and S2 from the below example:
S1 = ['C:\Users\STG\Desktop\ART_LTS_FUJ_Loop3\Results Simu\LMP1\[Auto Simu - Swept', ...
newline 'Parameters] Results\']
S2 = strrep(S1, newline, ' ')
Try replacing the newline character with a space (or nothing, using '') as I did when I created S2 and see if save accepts the file name created using that modified path.
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!