フィルターのクリア

Mat-File Version with 2019b Anomaly?

2 ビュー (過去 30 日間)
Jason
Jason 2020 年 2 月 3 日
編集済み: Walter Roberson 2020 年 2 月 3 日
Hello, I am trying to save an image array (cell array of images) to a mat file and Im expecting the filesize to be smaller than just saving as tiffs, but had an error message
Warning: Variable 'imgArray' was not saved. For variables larger than 2GB use MAT-file version 7.3 or later.
As I had matlab 2019b, I thought I would have the latest and greatest MAT-file version,
If I type the following ont he command line,
>> x = evalc(['type(''', savepath, ''')'])
It returns:
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Mon Feb 3 09:27:40 2020
So Im wondering
a: Why dont I have the latest version?
b: How do I get the latest version

採用された回答

Walter Roberson
Walter Roberson 2020 年 2 月 3 日
Use the -v7.3 option when you save.
Alternatively, if you go into Preferences then you can set v7.3 save as the default. That is, however, not generally desirable unless you are saving large objects or you specifically need to save with hdf5 compatibility.
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 3 日
編集済み: Walter Roberson 2020 年 2 月 3 日
The hdf5 format used by -v7.3 is a fair bit less efficient, except perhaps for the case of a single numeric array (and I would have to check the details for that case.) in particular it is much worse for structure arrays or cell arrays or tables or objects...
Jason
Jason 2020 年 2 月 3 日
Thankyou

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by