How to convert from matlab time to reall time and date
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rebecca Ellis
le 26 Nov 2018
Réponse apportée : Peter Perkins
le 27 Nov 2018
I have
datestr(7.3684e+05)
ans =
'25-May-2017'
But I need the time and seconds aswell, How do I get this ?
whith this information - I am trying to combine this with [x y]=ginput, as I want to take the times off a graph.
I have tried using
datetick('x', 'dd/mm - HH:MM', 'keepticks', 'keeplimits'); and datetick('x')
Any advise would be appreciated as I am not following the help pages for this problem
0 commentaires
Réponse acceptée
Plus de réponses (1)
Peter Perkins
le 27 Nov 2018
Rebecca, your description is not clear enough to understand what you are trying to do, but unless you are using a fairly old version of MATLAB, you should try to stay away from the old datenum/datestr functions and use datetime instead.
0 commentaires
Voir également
Catégories
En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!