From: JonKho Kho on 17 Jun 2010 22:20 Dear all, I been trying to learn this example "Plot traffic count data against date ticks for hours of the day showing AM and PM." which is found here.. http://www.mathworks.co.jp/access/helpdesk/help/techdoc/ref/datetick.html but it seems I have problem with this command, datetick('x','HHPM') and it gave me this message... ??? Error using ==> datetick Unknown date format: HHPM However I tried using the second last command, plot(xdate,count) and it is plot the graph with out the x-axis label in date/time... Any help this this will be great.. Thanks. Jon Kho
From: dpb on 17 Jun 2010 22:23 JonKho Kho wrote: .... > but it seems I have problem with this command, datetick('x','HHPM') and > it gave me this message... > ??? Error using ==> datetick > Unknown date format: HHPM .... doc datetick has list of recognized formats for the datetime string format... --
From: JonKho Kho on 17 Jun 2010 22:54 dpb <none(a)non.net> wrote in message <hvelf7$3ml$1(a)news.eternal-september.org>... > JonKho Kho wrote: > ... > > > but it seems I have problem with this command, datetick('x','HHPM') and > > it gave me this message... > > ??? Error using ==> datetick > > Unknown date format: HHPM > ... > > doc datetick > > has list of recognized formats for the datetime string format... > > -- Hi, and thanks for replying... didn't knew about "doc" i have been using "help".. anyway, I did tried this command previously, datetick('x','HH:MM PM') but it is still not working... Update: I manually input the command on the console.. and it is not working.. even i used the "clear" commant to remove any values made earlier... however, I used the editor and it works!! I noticed the intervals is 6hrs apart.. it is possible to make it 30mins or 1hr apart?? Thanks..
From: dpb on 18 Jun 2010 00:13 JonKho Kho wrote: .... > anyway, I did tried this command previously, datetick('x','HH:MM PM') > but it is still not working... > > Update: I manually input the command on the console.. and it is not > working.. even i used the "clear" commant to remove any values made > earlier... > > however, I used the editor and it works!! That would indicate some sort of typo or other issue impossible to diagnose from afar w/o session to look at... > I noticed the intervals is 6hrs apart.. it is possible to make it 30mins > or 1hr apart?? That would be set by 'xtick' intervals if the autoscale selection doesn't suit... --
From: JonKho Kho on 18 Jun 2010 03:59
> > That would be set by 'xtick' intervals if the autoscale selection > doesn't suit... > > -- Hi, Thanks for your reply... I followed your advice.. and i found this.. http://www.mathworks.com/support/solutions/en/data/1-15TK6/index.html?solution=1-15TK6 dear all, Now I am trying to make it integrate to the earlier coding.. but I have no luck... I am looking at this.... % Place the axis label at this point XMidPoint = Xl(1)+abs(diff(Xl))/2; tl = text(XMidPoint,LowYPoint,'X-Axis Label', ... 'VerticalAlignment','top', ... 'HorizontalAlignment','center'); Thanks |