How to split monthly value into days
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone
I have a little issue here. Solution must be easy, but i cant figure it out.
I have 12 values (each represent ideal rain in every month) IR = [0 0 0 70 83 100 110 100 70 0 0 0]'
Then i have long datetime (10 years) with daily time step.
Need to find out value for each day.
Example: IR for 27.Sept = IR(Sept)/number of days in Sept
Thanks for every help
댓글 수: 0
채택된 답변
Andrei Bobrov
2022년 3월 27일
Let dates - your long datetime (10 years) with daily time step.
out = IR(month(dates))./day(dates,"dayofmonth")
추가 답변 (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!