Hello,

I'm trying to match two different timeseries to one common time-vector. The problem is, there are two matrices which I want to match. First of all I'll give an example:

`matrix_ATimeA DataA_1 DataA_2 DataA_30.27 63 57 12.30.31 65 47 11.30.54 69 53 11.70.82 71 51 11.90.98 70 52 12.11.24 69 49 12.4--------------------------matrix_BTimeB DataB_1 DataB_20.13 113 23.70.54 112 25.80.69 110 24.40.85 115 23.51.03 113 25.9`

Now i want to match this two series of data to one matrix with equal time gaps, for example 0.25.

My idea is: First interpolate both data-series to get values at 0; 0.25; 0.5; 0.75; 1.0; 1.25 … and then safe them in one single matrix, that looks like:

`matrix_finishTime DataA_1 DataA_2 DataA_3 DataB_1 DataB_20 ... ... ... ... ...0.250.50.751.01.25...`

I know, there are functions in matlab like synchronize and interp1 or something, but it looks like I am to stupid to use them correctly for my problem.

Thanks for any help.

## Best Answer