我正在尝试从 excel 表中读取测试表,我的 excel 表看起来像这样
Building location start_date start_time end_date end_time number
Test_Building 1.08 12.06.2016 19:00 12.06.2016 19:30 7
现在,当我使用以下命令在 matlab 中将其作为表格阅读时:
R = readtable('testtable.xlsx','ReadVariableNames',1)
我得到类似的东西
R =
Building location start_date start_time end_date end_time number
_______________ ________ ____________ ____________ ____________ ________ ______
'Test_Building' 1.08 '12.06.2016' 0.79167 '12.06.2016' 0.8125 7
现在,如果您注意到start_time
andend_time
是以datenum
格式而不是 a 格式检索的,datestr
我该如何保存这段时间,以便当我检索这些变量时它们是 datestr 格式?