MATLAB: WHY DATE CANNOT TRANSFER FROM EXCEL TO MATLAB BY XLSREAD

dateexcellreadtabletransfer dataxlsread

Hello everyone,
To the right sight in the photo is my excell origin and to your left sight is my code (of xlsread) to transfer the data from column A to D. However, the result was just from column B to D! I changed to use readtable and the notice was: "Unable to determine the format of the DATETIME data, try adding a format to the DATETIME specifier".
Could you please help me? I have tried numerous times and still unsucced, I don't know how to fix this problem.
Thank you.
qq.png

Best Answer

If you have R2013b or later, use the readtable (link) function. It should automatically convert the Excel dates to MATLAB dates.