I am unable to import my csv
1 回表示 (過去 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 で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!