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 Commento

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

Accedi per commentare.

 Risposta accettata

per isakson
per isakson il 24 Ago 2012
Modificato: per isakson il 24 Ago 2012
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.

Più risposte (1)

Mark Joker
Mark Joker il 24 Ago 2012
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

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by