How to split monthly value into days
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jan Koncel
am 27 Mär. 2022
Kommentiert: Jan Koncel
am 28 Mär. 2022
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 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 27 Mär. 2022
Let dates - your long datetime (10 years) with daily time step.
out = IR(month(dates))./day(dates,"dayofmonth")
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!