There seems to be a few interpolate commands out there – interp1, resample – I used resample but it's not working properly. For one year I start with 8760 rows of rainfall data and should end up with 105120 rows – which I do…but there are negative values in my new table (which is obviously wrong?!)
This is the code:
clear allfilename=\MatLab\HourlyRainfallData_533.xlsx';sheet='2006';xlRange='A1:A8760';rain=xlsread(filename,sheet,xlRange);p = 12;q = 1;mins=resample(rain,p,q);
Best Answer