Convert dates from Excel to Matlab

前端 未结 3 930
醉梦人生
醉梦人生 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 05:55

    I tried with this. It works but it is slow and I am not able to plot the dates at the end. Anyway:

    table= readtable ('filename.xlsx');
    dates = table(:,1);
    dates = table2array (dates);
    dates = datenum(dates);
    dates = datestr (dates);
    

提交回复
热议问题