ttig data - time plotting

I want to plot data in Matlab, but have problems with time.
Time is in form: HH:MM:SS.miliseconds (for example: 11:16:41.835)
I read my .txt file(tab delimiter), now I need to plot data. All data are same length, as I can figure there is problem with time format. Any advice (Plot(time, data1) not working as well.
I load my .txt file with: tdfread('test.txt','\t')
I want to show my time in minutes in graph (thickness is 1 minute..but when I zoom graph time must be shown...)

1 个评论

Your file, test.txt, is large and I failed to download from crocko.
Why not include a few lines in the question above.

请先登录,再进行评论。

 采纳的回答

per isakson
per isakson 2012-8-24
编辑:per isakson 2012-8-24
Try
z = datevec( '11:16:41.835', 'HH:MM:SS.FFF' )
z =
1.0e+03 *
2.0120 0.0010 0.0010 0.0110 0.0160 0.0418
and
>> time = datenum( '11:16:41.835', 'HH:MM:SS.FFF' )
time =
7.3487e+05
.
--- Response to comment ---
The problem with zoom is a limitation of Matlab - used to be anyway. Search File exchange for %93&term=dateticks+zoom dateticks zoom.
I would try the contribution, Intelligent Dynamic Date Ticks, first.

更多回答(1 个)

I tried with
xTime=datenum(Time, 'HH:MM:SS.FFF')
and after ploting:
datetick('x','HH:MM:SS','keepticks')
but after zooming graph it's no anymore time on x axis

类别

帮助中心File Exchange 中查找有关 Time Series Events 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by