Date stamp on plot
Afficher commentaires plus anciens
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 commentaires
Scott MacKenzie
le 10 Juin 2021
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
le 10 Juin 2021
Réponse acceptée
Plus de réponses (1)
plot(1:10, 1:10)
title("This plot was created at " + string(datetime('now')))
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

