How to convert the daily into half hourly

1 回表示 (過去 30 日間)
ZITING ZHOU
ZITING ZHOU 2019 年 5 月 15 日
回答済み: KSSV 2019 年 5 月 15 日
My date is from 01-01-1980 to 31-12-2015, the datenum is from 723181 to 736329, and i need to convert the daily time to half hourly. Hoe do I do ?
Thanks

回答 (1 件)

KSSV
KSSV 2019 年 5 月 15 日
t0 = 723181 ;
t1= 736329 ;
t0 = [datestr(t0) ' 00:00:00'] ;
t1 = [datestr(t1) ' 00:00:00'] ;
t0 = datetime(t0) ;
t1 = datetime(t1) ;
thedates = (t0:hours(1/2):t1)' ;

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by