I am unable to import my csv
2 次查看(过去 30 天)
显示 更早的评论
I am unable to import my csv
0 个评论
回答(2 个)
Dyuman Joshi
2023-10-15
移动:Image Analyst
2023-10-15
It's working here, see below. So, there seems no problem with the file.
How are you reading the file?
Is the file in the current folder? Use the command "pwd" to check what the current folder is.
y = readtable('air-quality-india.csv')
0 个评论
鑫源
2023-10-15
the filename better be an absolute path, rather than a short form.(like C:\**\**.csv
You can use readcsv or readtable
2 个评论
Image Analyst
2023-10-15
There is no readcsv, though there is a deprecated csvread which is recommended not to use. I think you meant to use readmatrix or readtable.
Also, specifying the full file name (folder plus base file name plus extension) is a good idea. Use fullfile to do that.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!