turn data to time series

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?

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 7 Août 2013
Modifié(e) : Azzi Abdelmalek le 7 Août 2013

0 votes

dat='1992-12-12 12:12:12',
a=datenum(dat,'yyyy-mm-dd HH:MM:SS')
% to get dat,
datestr(a)

Catégories

En savoir plus sur Financial Toolbox dans Centre d'aide et File Exchange

Question posée :

le 7 Août 2013

Community Treasure Hunt

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

Start Hunting!

Translated by