2017-10-08 66 views
0

我有一個函數,期望日期在column vector1x2 of DateTime。如果我的數據是在這個2x20 of char這樣,[我使用兩個值,使之簡單 - 答案應該爲任意數量的日期炭火串,投放日期]將char的矩陣轉換爲日期的列向量

2x20 of char 

    20-Sep-2017 15:35:00 
    20-Sep-2017 15:40:00 

如何轉換爲

Columns 1 through 2 of DateTime 

    20-Sep-2017 15:35:00 20-Jan-2017 15:40:00 

回答

0
t = datetime(datesStrings(1:end,:)) 
t = t'