フィルターのクリア

Conversion of cumulate day of the year and year into Date/Month/Year

2 ビュー (過去 30 日間)
Nerma Caluk
Nerma Caluk 2022 年 6 月 24 日
回答済み: Star Strider 2022 年 6 月 24 日
If I have a date in format, for example; 344th day of 1970, how to covert it to Day/Month/Year format (datetime)?

回答 (1 件)

Star Strider
Star Strider 2022 年 6 月 24 日
The datetime function is remarkably robust (more so that I previously appreciated)!
Try this —
D = datetime(1970,1,344)
D = datetime
10-Dec-1970
Check = day(D,'dayofyear') % Check
Check = 344
.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by