Plottig data - time plotting

后端 未结 1 886
天命终不由人
天命终不由人 2021-01-28 20:10

I want to plot some data in Matlab, but I\'m having problems with properly displaying time.

Time is in format:

HH:MM:SS.miliseconds 

S

1条回答
  •  清歌不尽
    2021-01-28 20:20

    Consider using matlab's built-in datavec, for example:

     dvec = datevec('11:21:02.647', 'HH:MM:SS.FFF') 
    
    dvec =   1.0e+003 *
    2.0100    0.0010    0.0010    0.0110    0.0210    0.0026
    

    More info can be found here

    0 讨论(0)
提交回复
热议问题