我有带有字符串的 Matlab 表,我想将其转换为 datenum 格式。我试过了:
datenum(Tbl)
但我收到了错误:
Error using datenum (line 181)
DATENUM failed.
Caused by:
Error using datevec (line 103)
The input to DATEVEC was not an array of character vectors.
这是我的 Tbl 示例:
Tbl = table;
Tbl.('A') = {'29/07/2017'; 0};
Tbl.('B') = {'29/07/2017'; '31/07/2017'};