To interpolate data to a 5-minute time series instead of 15-minute, you can use the resample function in MATLAB. Here is an example:
main.m367 chars12 lines
In this example, the original data has a 15-minute time interval and is stored in t and x. The resample function is then used to resample the data to a 5-minute interval, with the new times stored in t2 and the resampled data stored in x2. Finally, the original and resampled data are plotted for comparison.
Note that the resample function assumes a uniform sampling rate, so if your original data is not perfectly evenly-spaced you may need to perform some preprocessing to ensure that the sampling rate is uniform.
gistlibby LogSnag