GUI Import data: Column names not recognized for large files

1 回表示 (過去 30 日間)
Timo
Timo 2018 年 3 月 28 日
編集済み: Timo 2018 年 4 月 2 日
Version R2017b. When using the GUI: Home->Import data for csv files, I observe that the import data interface does not take over the column headers from the .csv file if the number of columns is large. I tested this with csv files containing 365 columns and 3285 columns. The large file contains copies of the data in the small files. For the first short file,the column names are recognized but not for the second file:
Is this intended or a known bug? I could not find a reference on MATLAB Answers.
Thank you!
  4 件のコメント
Jan
Jan 2018 年 3 月 28 日
All headers in the first line are "bla", "bla", "bla", ... Isn't this nonsense? What about using different names?
Timo
Timo 2018 年 3 月 28 日
編集済み: Timo 2018 年 3 月 28 日
This is a test file which allows recreating the problem. My original files contain private data.

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

採用された回答

Prasanth Sunkara
Prasanth Sunkara 2018 年 4 月 2 日
This behavior is intentional. In order for the import tool to meet performance expectations, it only processes a certain amount of a delimited file to try to find header and variable name information, among other details, and this limit is 1000 columns. Beyond this, the import tool will experience many delays in performance.
Please consider using Datastore for larger data-sets.
-Prasanth
  1 件のコメント
Timo
Timo 2018 年 4 月 2 日
Thank you for the very clear answer! Not knowing the reason for this behavior might confuse the user though (as it did for me). A pop-up note or similar to inform the user and point to alternatives would be helpful.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by