MATLAB Answers

Is there issue with .mat files in matlab R2018b?

6 views (last 30 days)
Alban du Puytison
Alban du Puytison on 5 Dec 2018
Commented: Alban du Puytison on 21 Jan 2019
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?
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.




Community Treasure Hunt

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

Start Hunting!