Assuming you have a time series data y
with timestamps t
, follow the steps below to interpolate data every 5 minutes:
t
to a datetime
array:main.m41 chars2 lines
datetime
interval of 5 minutes:main.m32 chars2 lines
main.m28 chars2 lines
Here, interp1
is used for 1-D interpolation of y
to t_new
.
Your interpolated data is now available in y_new
variable.
gistlibby LogSnag