What do I need to change to output variables larger than 2 GB in MATLAB?

When I export workspaces with variables less than 2 GB no problem, but even when I try to output structures of more than 2 GB with no variable larger than 500 MB the export fails with no problem even reported. Is this fixed in new version, I'm running 2012B or operating system, I'm running Windows 7?

回答 (1 件)

per isakson
per isakson 2014 年 3 月 12 日

0 投票

See save. Use proper mat-file version. You already have a 64bit system?

4 件のコメント

neill
neill 2014 年 3 月 12 日
Yes, I should have clarified, 64 bit Windows 7 on a 24 GB RAM Workstation
per isakson
per isakson 2014 年 3 月 12 日
Did you try with mat-file version, '-v7.3'
save( filename, ..., '-v7.3' )
neill
neill 2014 年 3 月 13 日
8.0.0.783 (R2012b) is the version I am running and I am saving from the GUI, do I need to use a line command instead?
per isakson
per isakson 2014 年 3 月 13 日
編集済み: per isakson 2014 年 3 月 13 日
I might have misinterpreted your question. The functions save and load use mat-files to store and recover workspace data. I believe you refer to that with the words "export workspaces" and "output variables ".
Over time new mat-file formats have been added to Matlab. See MAT-File Versions. No new mat-file format has been added after R2012b.
"saving from the GUI". I assume you refer to the Matlab "desktop", not a GUI that you made. With R2013a (and R2013b?) there is no obvious way to occasionally save to '-v7.3'. Default is '-v7.0'. The only way I find is setting '-v7.3' in Preferences, General, MAT-files. However, you might not want to do that because the files become larger and slower(?). Command-line might be a better alternative to use occasionally.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Workspace Variables and MAT Files についてさらに検索

質問済み:

2014 年 3 月 12 日

編集済み:

2014 年 3 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by