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

1 件のコメント

per isakson
per isakson 2012 年 8 月 24 日
See above.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeTime Series Events についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by