I have IgorTime data in which time:units = "seconds since 1904-01-01". I would like to convert this seconds to datevc.
7 ビュー (過去 30 日間)
古いコメントを表示
I have attached the file (IgorTime).
Thank you
0 件のコメント
採用された回答
その他の回答 (1 件)
Are Mjaavatten
2019 年 6 月 17 日
First: Are you sure your T vector is in seconds? If so, your time list covers about 48 milliseconds around 01-Jan-1904 11:41:29. It makes more sense if T is in days since 1904-01-01.
Anyway, here is a way to do it:
dt = datetime(1904,1,1) + T; % Use T/24/3600 if T is really in seconds
dv = datevec(dt);
I recommend to work with datetime objects, which are very flexible. For instance, the time axis adustst automatically when you zoom in plots.
参考
カテゴリ
Help Center および File Exchange で Time Series Events についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!