Plot : how can I use datestr on a matrix?

4 visualizaciones (últimos 30 días)
Yasmine Torkhani
Yasmine Torkhani el 20 de Sept. de 2019
Comentada: Star Strider el 20 de Sept. de 2019
Hello friends,
does anyone know how I can get the format of the date in a matrix from number to date with the normal format from time 'dd-mm-yyyy'? I have a matrix with a column date which I changed from string to number by 'datenum'. For the plot of my curve, I need the date as string again. Is that possible with a matrix?
Thanks in advance!

Respuesta aceptada

Star Strider
Star Strider el 20 de Sept. de 2019
To get date strings on a plot that uses datenum numbers, use the datetick function.
  2 comentarios
Yasmine Torkhani
Yasmine Torkhani el 20 de Sept. de 2019
Nice!!!! This works fantastic on my figure!
Thank you a lot !!!!! :))))))
Star Strider
Star Strider el 20 de Sept. de 2019
As always, my pleasure!

Iniciar sesión para comentar.

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