我有一个xlsx文档,其中第一列表示时间序列:
2009-11-04 11:35:00.000
2009-11-04 11:36:00.000
2009-11-04 11:37:00.000
2009-11-04 11:38:00.000
当我使用函数在matlab中读取xlsx文件时:
~,~,data = xlsread(filename,1);
我得到的是:
40121.4826388889
40121.4833333333
40121.4840277778
40121.4847222222
它是哪种格式?我怎么才能找回时间呢?
非常感谢!
发布于 2013-07-15 21:55:24
使用datestr函数。有关MATLAB中日期和时间的更多信息,请参见Represent Dates and Times in MATLAB。但是,Excel具有与MATLAB不同的日期表示形式,有关更多信息,请参见When to Convert Dates from Excel Files。
https://stackoverflow.com/questions/17655801
复制相似问题