I am attempting to correlate the time series from 4 separate tilt monitors that sample every 5 minutes. The time series have slightly different base times and end times, and the resulting arrays are slightly different lengths, though they span the same period of time. My goal is to correlate each of these time series with a single "wind speed" time series that also covers the same period of time as the tilt monitors, sampling every 5 minutes, but also has a slightly different array length and base time and end time.
The different array lengths in the tilt measurements are due to instrument error. There are some times within each of the arrays where the instrument missed a measurement and so the sample interval is 10 minutes.
My arrays sizes look something like this:
Tilt_a = 6236x2 Tilt_b = 6310x2 Tilt_c = 6304x2 Tilt_d = 6309x2 Wind_speed = 6283x2
What is the best method to correlate the tilt data with the wind data without creating artifacts (false data) within the data? I know that I could interpolate through each time series to get an interval of 5 minutes throughout each series, but I do not know if this is the best way. I also do not know how to reconcile their slightly different base times and end times.
I am using MATLAB to do the correlation. This post is similar to: How to correlate two time series with gaps and different time bases?