How can I deal with "bad 0-byte size" ?

4 ビュー (過去 30 日間)
homayoon
homayoon 2012 年 9 月 4 日
How can I deal with following message?
"Found bad 0-byte size at variable #12.
ans =
0"
I get this message when I am using splitmat.m on a .mat file. I get "file may be corrupt" message when i try to load this file with load blabla.mat I am using R2008a bytheway, this .mat file is created by a Fortran code which i havent stepped into it yet, but it used to work perfectly. --------------------- Thanks in advance for your time and answer I appreciate it Homayoon

回答 (1 件)

Jan
Jan 2012 年 9 月 4 日
編集済み: Jan 2012 年 9 月 4 日
Even if your Fortran file seems to run fine usually, the created MAT file is obviously corrupted. This can have different reasons:
  1. The Fortran code has a bug.
  2. The Fortran code follows specifications of the MAT format, which do not equal the implementation on MATLAB. Ambiguous format definition would not be a real surprise, when I think of e.g. the binary DOC format of MS Word...
  3. The harddisk is damaged.
I guess without any argument, that your problem is caused by point 1.

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by