Best way to extract parts of arrays in a bigger array

Hello everyone,

I’m wondering if anybody can find a better solution to this problem:

I have 2 arrays of arrays: in the first one there are time series, and in the second one there are timepoints on those time series.

My objective is to extract the values of the time series around the timepoints in the second array of arrays.

There are multiple timepoints for each time series.

thanks in advance!

Better is relative - what is your current solution? Consider reading Please read: make it easier to help you

5 Likes

I don’t follow this: you have 2 arrays of arrays … the second one [is an array of arrays of] timepoints. Is the second one an array of 1-element arrays or an array of arrays of multiple timepoints, each different? Also, what is the approach you have chosen currently?