how to convert string date number to double?

4 次查看(过去 30 天)
I used 'datenum' to convert date to number. And then used datestr to see the date and the result is as follows.<123x11 char>
val =
01-Jan-1961
02-Jun-1965
.....
How can I convert this character to double?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-27
编辑:Azzi Abdelmalek 2013-1-27
datenum(val)
Or
Datevec(val)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by