Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to apply datetick to a half-hourly dataset

Subject: how to apply datetick to a half-hourly dataset

From: Kuo-Hsien

Date: 26 Feb, 2010 04:42:05

Message: 1 of 4

Hi,
I try several times, but cannot make it works. I have a dataset for 2008 in a half-hourly time step which means 366*24*2 = 17568 rows of data.

How to show the datetick in Doy or in mm/dd format?

Thanks,
Michael

Subject: how to apply datetick to a half-hourly dataset

From: dpb

Date: 26 Feb, 2010 15:19:18

Message: 2 of 4

Kuo-Hsien wrote:
> Hi,
> I try several times, but cannot make it works. I have a dataset for 2008
> in a half-hourly time step which means 366*24*2 = 17568 rows of data.
>
> How to show the datetick in Doy or in mm/dd format?

What did you do that didn't work?

17k points will be excessive to show all tickmarks on a plot certainly
and still be legible.

--

Subject: how to apply datetick to a half-hourly dataset

From: Kuo-Hsien

Date: 26 Feb, 2010 15:53:04

Message: 3 of 4

The commend, datetick('x','mmm','keepticks') showed "Jan", "Jun", "Dec", "Jun", "Nov", "May", "Nov", "Apr", "Oct", "Apr". However, I want to show the datetick as "Jan", "Feb", "Mar", "Apr",..."Nov", "Dec", or day of year. How to do this?

Thanks.

Subject: how to apply datetick to a half-hourly dataset

From: Kuo-Hsien

Date: 26 Feb, 2010 16:10:21

Message: 4 of 4

"Kuo-Hsien" <mchangks@hotmail.com> wrote in message <hm8qp0$i4m$1@fred.mathworks.com>...
> The commend, datetick('x','mmm','keepticks') showed "Jan", "Jun", "Dec", "Jun", "Nov", "May", "Nov", "Apr", "Oct", "Apr". However, I want to show the datetick as "Jan", "Feb", "Mar", "Apr",..."Nov", "Dec", or day of year. How to do this?
>
> Thanks.

Dear all,
I solve it. I forget I need to a set of date number.

Thanks.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us