datenum and date conversion

Hi! the goal was to select 200 data from i big data. i took the time as a parameter
and converted it with datenum.
i wanted to plot the variation of selected measured data with the (date and time)
it will be for me nice to show also the date and time un the plot not only the converted eith datenum.
is there any possibilty to do this?
% code
date= time=
'1.2.2010' '1:2:59'
'2.2.2010' '2:3:50'
'5.2.2010' ......
... .......
... .....
.... .....
i converted them with datnum
converted=datenum(date)+datenum(time)
thanky

댓글 수: 1

Jan
Jan 2012년 11월 15일
It is hard for me to read your message. What exactly is the goal? Where do you select what?

댓글을 달려면 로그인하십시오.

답변 (2개)

Ilham Hardy
Ilham Hardy 2012년 11월 15일

0 개 추천

Use
datetick
to show date and time in the axis of the plot.. (if that what you meant..)
Andrei Bobrov
Andrei Bobrov 2012년 11월 15일
편집: Andrei Bobrov 2012년 11월 15일

0 개 추천

date = [
'1.2.2010'
'2.2.2010'
'5.2.2010']
time = [
'1:2:59'
'2:3:50'
'5:4:59']
out = datenum(strcat(date,{' '},time),'dd.mm.yyyy HH:MM:SS');

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2012년 11월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by