error message when opening matlab file

7 ビュー (過去 30 日間)
AA
AA 2015 年 2 月 14 日
コメント済み: Image Analyst 2015 年 2 月 15 日
I am trying to open a matlab file and it gives me the following error. This matlab file was copied on a usb stick from my desktop computer to my notebook and now it gives me this error:
Error using load
Number of columns on line 2 of ASCII file C:\Users\kevin\Desktop\matlab.mat must
be the same as previous lines.
Error in uiimport/runImportdata (line 456)
datastruct = load('-ascii', fileAbsolutePath);
Error in uiimport/gatherFilePreviewData (line 424)
[datastruct, textDelimiter, headerLines]= runImportdata(fileAbsolutePath,
type);
Error in uiimport (line 240)
[ctorPreviewText, ctorHeaderLines, ctorDelim] = ...
  4 件のコメント
Geoff Hayes
Geoff Hayes 2015 年 2 月 14 日
AA - the file is named as if it were a mat file, but the error message indicates that it could be an ASCII file. I get this same if I create a text file as with the contents set as
2 3 4
5 6 7 8
and then use load('someFile.txt'). Are you expecting every row in your file to have the same number of columns?
Image Analyst
Image Analyst 2015 年 2 月 15 日
Then attach a smaller part of it. You're probably not going to be able to read in a 6 GB file into memory all at one time anyway.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by