I have a matrix that is 1 column with 5448 rows with values in each. In reality these 5448 values are divided into 12 taps (being 454 values per tap). I want to index the closest 10% of values closest to tap boundaries (10% of a tap is 45.4 values so lets say 45 values). For the first tap, i will only need the last 10%, and for the last tap (tap 12) i will only need the first 10%. Every other tap (2-11) i will need the beginning 10% and the last 10%. So essentially the first 45 values and the last 45 values of each tap.
currently I'm extracting the value segments like this:
A1 = interpolate((817/2+.5):(908/2),:);
B1 = interpolate((909/2+.5):(1000/2),:);
this example includes the last 10% values of tap 1 and the first 10% values from tap 2. If i only had a few segments to pull this would be okay, but when i have matrices that go up to around 40,000 values, this method gets a little rediculous.