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일

1 개 추천

To get date strings on a plot that uses datenum numbers, use the datetick function.

댓글 수: 2

Yasmine Torkhani
Yasmine Torkhani 2019년 9월 20일
Nice!!!! This works fantastic on my figure!
Thank you a lot !!!!! :))))))
Star Strider
Star Strider 2019년 9월 20일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2019년 9월 20일

댓글:

2019년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by