Date stamp on plot
이전 댓글 표시
Hello.
I am having an issue where I am plotting data using datetime (converting from excel) and it is giving me the date stamp of the current day on the plot. I need to specify the date I want and stamp it onto the plots without interfering with the data. How can I do this?
Thanks!
댓글 수: 2
Scott MacKenzie
2021년 6월 10일
So, you are reading a date and time from Excel into a datetime variable, but the datetime variable is for the current day not the day in the Excel file. It might help if you provide the data and your code.
Brian Gregory
2021년 6월 10일
채택된 답변
추가 답변 (1개)
plot(1:10, 1:10)
title("This plot was created at " + string(datetime('now')))
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

