Borrar filtros
Borrar filtros

hello I have to dates 17/04/2007 and 15/12/2007 and i need the hourly data for these date from file of 8760?

2 visualizaciones (últimos 30 días)
hello, I have to dates 17/04/2007 and 15/12/2007 and I need the hourly data for these date from a file of 8760? i mean hourly data of those dates?

Respuesta aceptada

Star Strider
Star Strider el 29 de Ag. de 2016
See if this does what you want:
DN = datenum({'17/04/2007'; '15/12/2007'}, 'dd/mm/yyyy');
Hourly = [DN(1) : (1/24) : DN(2)]'; % Date number Vector
HourlyStr = datestr(Hourly, 'dd/mm/yyyy HH'); % Date String Character Array
  2 comentarios
ABDULLA RAHIL
ABDULLA RAHIL el 29 de Ag. de 2016
hanks for your answer, but what I need is that I already have the hourly data of the 2007 (8760 hours) and I need the position of just two days not from to, I mean each day separate
Star Strider
Star Strider el 29 de Ag. de 2016
My pleasure.
I need to know the format of your data, and what you want as the result. It would help if you upload (attach) your data as a .mat file so I have it to work with.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time 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