フィルターのクリア

Loading a MAT file gives "Cannot read file", yet sucessfuly loads data into memory.

1 回表示 (過去 30 日間)
David Leather
David Leather 2020 年 11 月 19 日
回答済み: Rohit Pappu 2020 年 11 月 25 日
Hi,
I ran an experiment on a cluster, and noticed 1/10,000 MAT files gave a "cannot read file" error when collecting results. I downloaded the MAT file and confirmed the error. I then reran the script that generated the MAT file, and was given the same error on the new MAT file. Once again, I download the MAT file onto my local machine. I noticed despite the error, MATLAB successfully loads variables into the workspace and they seem to be working fine.
I suppose I shouldn't be compaining but I want to know what is going on....
Obtaining the header from the following code outputs
fid = fopen(fn, 'r');
header = fread(fid,120).';
fclose(fid);
char(header)
MATLAB 5.0 MAT-file, Platform: GLNXA64, Created on: Thu Nov 19 04:19:49 2020
Note that I restarted MATLAB and cleared all multiple times, to ensure the variables were not in my workspace beforehand.
  2 件のコメント
David Leather
David Leather 2020 年 11 月 19 日
Here is a link to the MAT file https://www.dropbox.com/s/hqyh5j71hh6sznf/mc_experiment_block_v3_7163.mat?dl=0
dpb
dpb 2020 年 11 月 20 日
If this is reproducible, submit a bug report to TMW.

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

回答 (1 件)

Rohit Pappu
Rohit Pappu 2020 年 11 月 25 日
There could be a possibility of the file being corrupted. For further analysis, you can use the MATCAT tool , which is available on File Exchange

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by