Counting values by day/hour with timeseries in MATLAB

后端 未结 3 749
死守一世寂寞
死守一世寂寞 2020-12-12 00:21

So, I\'m beginning to use timeseries in MATLAB and I\'m kinda stuck.

I have a list of timestamps of events which I imported into MATLAB. It\'s now a 3000x25 array wh

3条回答
  •  没有蜡笔的小新
    2020-12-12 01:26

    I don't know what +00:00 means (maybe time zone?), but you can simply convert your string timestamps into numerical format:

    >> t = datenum('2000-01-01T00:01:04+00:00', 'yyyy-mm-ddTHH:MM:SS')
    
    t =
    
      7.3049e+005
    
    >> datestr(t)
    
    ans =
    
    01-Jan-2000 00:01:04
    

提交回复
热议问题