Error reading .mat file
古いコメントを表示
Hi, I have a .mat file which is produced by MIPAV and for some reason matlab cannot load it, here's the error message. Just wondering if anyone seen this before?
Number of columns on line 2 of ASCII file /Users/fiona/Desktop/_801_smask.mat
must be the same as previous lines.
Error in uiimport/runImportdata (line 467)
datastruct = load('-ascii', fileAbsolutePath);
Error in uiimport/gatherFilePreviewData (line 435)
[datastruct, textDelimiter, headerLines]= runImportdata(fileAbsolutePath,
type);
Error in uiimport (line 245)
gatherFilePreviewData(fileAbsolutePath);
2 件のコメント
Guillaume
2019 年 9 月 27 日
Can we have an example of the file?
Using readtable or readmatrix (if your version is new enough) would allow more flexibility than using load which is probably the worse way of reading text files.
Stephen23
2019 年 9 月 27 日
Fiona Gong's "Answer" moved here:
Example attached. I have matlab 2018a so cannot use readmatrix. Readtable returns an error too 'Unable to open file '_801_smask.txt'.'
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
