Plot : how can I use datestr on a matrix?

4 次查看(过去 30 天)
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!

采纳的回答

Star Strider
Star Strider 2019-9-20
To get date strings on a plot that uses datenum numbers, use the datetick function.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by