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!