Is there issue with .mat files in matlab R2018b?

1 view (last 30 days)
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
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.
Alban du Puytison
Alban du Puytison on 21 Jan 2019
ok I will try agin with more disk space. Thanks

Sign in to comment.

Answers (1)

Steven Lord
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.
  1 Comment
Alban du Puytison
Alban du Puytison on 18 Jan 2019
there is no new line, it just because of the copy and paste from the matlab consol

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!