convert from datenum to a date
이전 댓글 표시
Hi,
is ther any function which convert the serial number from the function (detenum) to the original date like .
I have a vector of date and time and i converted it with datenum. I made a plot of another variable with the date_time vector. i get just the serial number.
thnks
채택된 답변
추가 답변 (2개)
Andreas Svedin
2016년 7월 5일
0 개 추천
If you use "datenum" on a datetime array and want to get it converted back to datetime use the command below. It seem to work
"datetime(datestr(dates))"
댓글 수: 2
Peter Perkins
2016년 8월 3일
Or more directly: datetime(dates,'ConvertFrom','datenum')
Fercho_Sala
2021년 4월 16일
@Peter Perkins good answer, but it does't separe in one colum dates and in other column hours, how do you do it?
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!