Passing datenum a column vector?
显示 更早的评论
Hi, I have a column vector of dates in yyyymmdd format e.g.
19961016
19961017
19961018
19961021
19961022
19961023
19961024
Is there a way to convert each entry into a serial date number and have a column vector of serial date numbers back?
thanks friz
采纳的回答
更多回答(1 个)
Andrei Bobrov
2011-5-7
more
sd = datenum(num2str(d),'yyyymmdd')
类别
在 帮助中心 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!