dates with yy
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a cell array of dates that have this format: '08/28/01' '03/01/97' etc.. How can I convert them to a double matlab number date? where 08/28/01 refers to the 28th of august 2001 and 03/01/97 refers ti the first of march 1997
0 个评论
采纳的回答
Matt Fig
2011-4-25
datenum('08/28/01')
2 个评论
Oleg Komarov
2011-4-25
I usually always write the format (since I am european):
datenum('08/09/01','mm/dd/yy')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!