how to convert string date number to double?

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 日

0 投票

datenum(val)
Or
Datevec(val)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

質問済み:

Bum
2013 年 1 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by