Please find attached the vector that I am trying to convert
Converting date string to number
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a vector of the following format 01-Jul-1980 00:00:00 how can I convert to a matlab date number?
Respuestas (3)
Jan
el 11 de Feb. de 2018
S = '01-Jul-1980 00:00:00';
datenum(S) % Old
datetime(S) % Modern
0 comentarios
Walter Roberson
el 11 de Feb. de 2018
You have a datetime array. You can convert it to serial datenum using
datenum(issuedate)
Note that this is typically not required any more, but can be required for some plotting reasons from R2013b to R2015b.
0 comentarios
Ver también
Categorías
Más información sobre Dates and Time 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!