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!