Unable to read MAT-file E:\my_file.mat: not a binary MAT-file.

11 ビュー (過去 30 日間)
Matlab2010
Matlab2010 2014 年 11 月 18 日
回答済み: Diana Duque 2018 年 3 月 1 日
On one machine (2014A, win server 2012 R2) I run
save('-v7.3','E:\myFile.mat');
on a second machine (2014A, win7 pro) I run
load('E:\myFile.mat');
I get the error
Unable to read MAT-file E:\my_file.mat: not a binary MAT-file.
E is a network drive.
Now clearly the file is a MAT file. The command line suggests "Try LOAD -ASCII to read as text." before I go down that route, I want to know what has gone wrong. How can I test for corruption at the point of writing? The files are quite large (several hundred Mb) and due to the network take a long time (5mins or so to be written).
thank you.

回答 (2 件)

Ken Atwell
Ken Atwell 2014 年 11 月 18 日
This sounds like something that should work. Try performing a checksum on the file on both computers and see what they report. If they are reporting different values, that would be something to take up with your sys admin. If the values are identical, add these details to this Answer.
See this Stack Overflow topic for getting a checksum tool on your PC.

Diana Duque
Diana Duque 2018 年 3 月 1 日
I had the same problem with a network drive. If it is there a way to sync the files so they are part of the local drive, that would probably solve the problem.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by