MATLAB: Am I unable to load the MAT-file in MATLAB 7.0 (R14)

.mat filecorruptfileloadMATLABnansave

When I save an array to "myfile" and load it back into MATLAB using the following code:
x = ones(1111,47);
x(1,1) = nan;
save myfile x;
load myfile;
I receive the following error message:
??? Error using ==> load
Unable to read MAT-file D:\Applications\MATLAB7\work\myfile.mat
File may be corrupt.

Best Answer

This problem has been fixed in MATLAB 7.0.1 (R14SP1). If you are using MATLAB 7.0 (R14), please read the following:
There is a bug in MATLAB 7.0 (R14) in the way that SAVE handles arrays of certain sizes which contain NaNs. To work around this problem, use the '-v6' option with the SAVE command.