Convert dates from Excel to Matlab

前端 未结 3 941
醉梦人生
醉梦人生 2021-01-15 05:29

I have a series of dates and some corresponding values. The format of the data in Excel is \"Custom\" dd/mm/yyyy hh:mm. When I try to convert this column into a

3条回答
  •  花落未央
    2021-01-15 06:04

    Minutes need to be called with a capital M to distinguish them from months. Use a=datestr(xlsread('filename.xlsx',1,'A:A'),'dd/mm/yyyy HH:MM')

    Edit: Corrected my original answer, where I had mixed up the cases needed.

提交回复
热议问题