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?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
ABDULLA RAHIL
il 29 Ago 2016
Commentato: Star Strider
il 29 Ago 2016
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?
0 Commenti
Risposta accettata
Star Strider
il 29 Ago 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 Commenti
Star Strider
il 29 Ago 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Dates and Time in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!