problem with Read excel file

I have an excel file like below.
when I read it using
fid = xlsread('P645.cwu.igs14.csv');
the first column(Date) didnt read and it just give
what is the problem?

답변 (2개)

Marcel Kreuzberg
Marcel Kreuzberg 2022년 10월 20일

0 개 추천

xlsread read numeric values by default check out readtable
regards
Marcel

댓글 수: 2

tara es
tara es 2022년 10월 20일
Thanks, but when I use readtable its problem is the conversion between table & matric. It makes an error for first part.
Marcel Kreuzberg
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.

댓글을 달려면 로그인하십시오.

카테고리

질문:

2022년 10월 20일

답변:

2022년 10월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by