By default, MATLAB uses v7 .mat files which have a size limit of 2^31 bytes per variable.
Certain batch operations (such as proc.Batch.reintegrate) produce such large arrays, and may throw a mysterious error when trying to write the file, such as:
Unable to save file '[...] /reintegrate.mat’. The file could not be closed, and might now be corrupt.
The problem can be solved by changing the default file format to v7.3 in preferences:
See:
https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html
However, it would be better to force v7.3 in this line of proc.Batch.saveToMatFile:
|
save(fileName,'-struct','dataToSave',varargin{isFlag}); |
By default, MATLAB uses v7 .mat files which have a size limit of 2^31 bytes per variable.
Certain batch operations (such as proc.Batch.reintegrate) produce such large arrays, and may throw a mysterious error when trying to write the file, such as:
The problem can be solved by changing the default file format to v7.3 in preferences:
See:
https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html
However, it would be better to force v7.3 in this line of
proc.Batch.saveToMatFile:mdx-lib/+proc/@Batch/Batch.m
Line 128 in 1f6a717