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

per isakson
per isakson 2012년 8월 24일
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일

1 개 추천

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개)

Mark Joker
Mark Joker 2012년 8월 24일

0 개 추천

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