Timestamp Formatting (Datenum Limitation?)
Mostrar comentarios más antiguos
If I want a timestmap of the format string such that 'mm/dd/yy HH:MM:SS PM' is my format into matlab's numerical number,
datenum(01/01/13,'mm/dd/yy HH:MM:SS PM')
only displays the general number associated with the date and not the time. How do I correct this to get the full number with decimals indicating the time as well?
Respuestas (1)
Andrei Bobrov
el 19 de Jun. de 2013
Editada: Andrei Bobrov
el 19 de Jun. de 2013
datenum('01/01/13 03:12:45 PM','mm/dd/yy HH:MM:SS PM');
ADD
datenum({'01/01/13 03:12:45 PM','01/02/13 06:12:45 AM'},'mm/dd/yy HH:MM:SS PM')
2 comentarios
Kwen
el 19 de Jun. de 2013
Andrei Bobrov
el 19 de Jun. de 2013
For vector? See ADD in my answer.
Categorías
Más información sobre Time Series Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!