plot time in HH:MM ix x axis

54 visualizaciones (últimos 30 días)
Ron Amar
Ron Amar el 24 de En. de 2022
Comentada: Ankit el 24 de En. de 2022
Hi, I have 16000 sampled data. I want to plot it vs time in HH:mm format (ex 15:33)
I know when the first data point was taken (12:33:00) and I sampled 1 per 10 seconds.
I cant figure out how to do this

Respuesta aceptada

Ankit el 24 de En. de 2022
You need to change the format using datetick.
date={'15:10:34.600 AM 2/26/2017','15:20:34.700 AM 2/26/2017','15:30:34.800 AM 2/26/2017','15:40:34.900 AM 2/26/2017'};
timeFormat='HH:MM:SS.FFF AM mm/dd/yyyy';
  6 comentarios
Ankit el 24 de En. de 2022
@Steven Lord thanks for your suggestion. now I know one more way to achieve this :)

Iniciar sesión para comentar.

Más respuestas (0)


Más información sobre Graphics Performance 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!

Translated by