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 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2016년 8월 29일
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
Star Strider
2016년 8월 29일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!