How to convert from matlab time to reall time and date
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rebecca Ellis
am 26 Nov. 2018
Beantwortet: Peter Perkins
am 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Peter Perkins
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Time Series Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!