How to convert from matlab time to reall time and date
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rebecca Ellis
el 26 de Nov. de 2018
Respondida: Peter Perkins
el 27 de Nov. de 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 comentarios
Respuesta aceptada
Más respuestas (1)
Peter Perkins
el 27 de Nov. de 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 comentarios
Ver también
Categorías
Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!