How can I add a date vector for the x-axis of a normal plot?

2 visualizaciones (últimos 30 días)
Dear all,
I have a 3000*2 matrix. In column 1 is the date, but the date was transformed with the command datenum, and in the second column is the data. So when I plot the data, I want the date, which is in the first column, on the x-axis. The date had bfore the transformation with datenum the format: 'dd.mm.yyy HH:MM:SS'. So I want that the first of every sixth month is on the x-axis. For example 01.01.2004, then 01.06.2004 and so...How can I do that? Thank you in advance!

Respuesta aceptada

Honglei Chen
Honglei Chen el 6 de Feb. de 2013

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by