Bigger than 2GB Data Storage

1 190 views (last 30 days)
Erdem Altuntac
Erdem Altuntac on 7 Feb 2018
Commented: Imanol on 10 Jan 2024
Hello,
I`m a 2016B user. This version complains about my synthetic data storage and says that `For variables larger than 2GB use MAT-file version 7.3 or later.`. I cannot obtain higher version. Any idea on how to store big data?
Thanks in advance
  2 Comments
Adam
Adam on 7 Feb 2018
You would probably be better splitting your data into chunks if that is possible. Saving large files to v7.3 can be very bad in terms of performance.
Jan
Jan on 7 Feb 2018
The message is clear already: All you have to do is to append the -v7.3 flag to your save command (see Kai's answer) or to set this as default in the preferences.

Sign in to comment.

Accepted Answer

Kai Domhardt
Kai Domhardt on 7 Feb 2018
Take from the reference and tested with Matlab R2016b:
save('myFile.mat', 'Variablename', '-v7.3')
will save your variable ( > 2GB ), provided you are running on an 64-bit system
  12 Comments
Ranjeet Singh
Ranjeet Singh on 10 Oct 2023
Thank you so much
Imanol
Imanol on 10 Jan 2024
Thank you so much

Sign in to comment.

More Answers (1)

Steven Lord
Steven Lord on 7 Feb 2018
Open the documentation for the save function using doc save. In order to save your data to a MAT-file with version 7.3 or later, specify the '-v7.3' flag as the version input argument. The "Save Variables to Version 7.3 MAT-File" example on that page shows the exact syntax.

Community Treasure Hunt

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

Start Hunting!