How to display the midnight time in the x-axis ?

2 visualizaciones (últimos 30 días)
Manoj
Manoj el 26 de Jul. de 2018
Comentada: Manoj el 2 de Ag. de 2018
find the attachment of the excel sheet having time from PM to AM in the midnight? I need to plot the time on x-axis from PM to AM (like 19:23PM and 01:02AM)?
  1 comentario
KALYAN ACHARJYA
KALYAN ACHARJYA el 26 de Jul. de 2018
Editada: KALYAN ACHARJYA el 26 de Jul. de 2018
What about y axis? There is no 01:02AM time in csv file.

Iniciar sesión para comentar.

Respuesta aceptada

jonas
jonas el 26 de Jul. de 2018
Editada: jonas el 26 de Jul. de 2018
I assume you have some start date, which is here set to 2000-1-1.
time=dlmread('Time_S.csv')
t1 = datetime(2000,1,1)+hours(time)
y=rand(size(t1))
h=plot(t1,y)
xtickformat('HH:mm a')
The subsequent 'a' in the xtickformat specifies AM/PM format
  3 comentarios
Manoj
Manoj el 2 de Ag. de 2018
okay thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by