problem with Read excel file
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an excel file like below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1162743/image.jpeg)
when I read it using
fid = xlsread('P645.cwu.igs14.csv');
the first column(Date) didnt read and it just give
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1162748/image.jpeg)
what is the problem?
댓글 수: 0
답변 (2개)
Marcel Kreuzberg
2022년 10월 20일
xlsread read numeric values by default check out readtable
regards
Marcel
댓글 수: 2
Marcel Kreuzberg
2022년 10월 21일
after reading the file with readtable (and the 'NumHeaderLines',11 option) you should get an table. the problem is now, that the tirst column 'Date' is not numeric. to get an matrix you have to convert the Date to numeric value first.
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!