ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text. (no octave code)
10 ビュー (過去 30 日間)
古いコメントを表示
ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.
I don't have any octave code and this problem only happened after windows update.
Only part of data cannot be loaded by the matlab but can be opened by other machines.
I have reinstalled Matlab 2021a.
9 件のコメント
Stephen23
2025 年 1 月 15 日
It is a valid MAT file, and the current MATLAB version has no problem LOADing it:
S = load('roi_para.mat')
回答 (1 件)
Naga
2025 年 1 月 15 日
編集済み: Naga
2025 年 1 月 15 日
It seems you are encountering an error because the file you are trying to load is not a proper MAT file. To verify if a file is indeed a proper MAT file, you can open it with a text editor like Notepad++ on Windows. Despite MAT files being binary and mostly not human-readable, the first line should always be in plain text. This line typically looks something like this:
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Wed Jul 13 19:17:35 2022
If this initial line of text is missing, it's likely the file is not a proper MAT file. It's important to note that while files with a ".mat" extension are expected to be MAT files, they might not always adhere to the proper format. MATLAB supports various MAT file formats, and all are binary.
When attempting to load a MAT file into the workspace, you might use the following command:
load('-ASCII', <Filename>)
Ensure that the file is a proper MAT file to avoid errors.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!