I am unable to import my csv
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am unable to import my csv
0 commentaires
Réponses (2)
Dyuman Joshi
le 15 Oct 2023
Déplacé(e) : Image Analyst
le 15 Oct 2023
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 commentaires
鑫源
le 15 Oct 2023
the filename better be an absolute path, rather than a short form.(like C:\**\**.csv
You can use readcsv or readtable
2 commentaires
Image Analyst
le 15 Oct 2023
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.
Voir également
Catégories
En savoir plus sur Adding custom doc dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!