フィルターのクリア

Error while trying to import a .csv file. Why? <<Error using readtable (line 216)>> MATLAB

1 回表示 (過去 30 日間)
Myke Ziz
Myke Ziz 2020 年 4 月 30 日
コメント済み: Sindar 2020 年 4 月 30 日
I have this dataset in a csv file data.csv.
When I try to import it it gaves me an error.
data = readtable('data.csv', header = true);
Error using readtable (line 216)
Conversion to cell from char is not possible.
Note: readtable detected the following parameters:
'Delimiter', ',', 'HeaderLines', 0, 'ReadVariableNames', true, 'Format', ''
  1 件のコメント
Sindar
Sindar 2020 年 4 月 30 日
Matlab uses name-value input passing, not keyword, and the name is 'HeaderLines':
data = readtable('data.csv', 'HeaderLines',1);
this may or may not fix the error

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by