Data import from csv file

1 回表示 (過去 30 日間)
Harsh Rob
Harsh Rob 2019 年 7 月 16 日
回答済み: Walter Roberson 2019 年 7 月 16 日
I want to import data from my csv file which has more than 2 million rows. I cant open the file in csv format. Thus, I want to open this in matlab and do the operations. I have used x= importdata('filename.csv') but this does not work.

採用された回答

Walter Roberson
Walter Roberson 2019 年 7 月 16 日
These days we recommend readtable() -- or if you have R2019a or later and your data is entirely numeric, then possibly readmatrix()
If your data is all numeric then you might be able to get a little higher performance with csvread(), which invokes dlmread(), which invokes textscan() to do the work.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by