simulate hourly data from monthly data

2 visualizzazioni (ultimi 30 giorni)
masih
masih il 24 Lug 2017
Modificato: Andrei Bobrov il 24 Lug 2017
Hi All,
I have monthly temperature data from Jan-Dec. I want to simulate hourly temperature data from these monthly data. How do we do this in Matlab. I know that these values will be approximate and not exact but it is ok for my purposes. Please advise. Thanks

Risposte (2)

KSSV
KSSV il 24 Lug 2017
Simply you need to use interpolation.....read about interp1

Andrei Bobrov
Andrei Bobrov il 24 Lug 2017
Modificato: Andrei Bobrov il 24 Lug 2017
Let TT - your data as timetable:
TT = timetable(datetime(2016,1 + (0:11)',1),randi([-100 100],23,1),'v',{'Values'});
T_out = retime(TT,'hourly','pchip');

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by