turn data to time series

1 次查看(过去 30 天)
Ilana
Ilana 2013-8-7
hi, i have data structured in columns as [year month day hour price] . what is the right syntax to use function timeseries to turn my data to a time series? do i need to transform the year,month,day,hour to date string?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-8-7
编辑:Azzi Abdelmalek 2013-8-7
dat='1992-12-12 12:12:12',
a=datenum(dat,'yyyy-mm-dd HH:MM:SS')
% to get dat,
datestr(a)

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by