Error while trying to import a .csv file. Why? <<Error using readtable (line 216)>> MATLAB
3 次查看(过去 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
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 Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!