I have a vector, F0, with values I need to study. The vector f0 can be separated into sections A&B, A_starts has the indexes where sections of A start and A_ends has the indexes where A ends, the resulting elements of F0 are B. How can I extract the elements A and B from F0?
I tried the following but I only got the elements from the first occurrence of the section.
A=F0(starts_A:ends_A);
An example of the dataset:
F0: 110 6 7 101 105 3 5 1 109 9 8 7 6 108
starts_A: 2, 6, 10
ends_A: 3, 8, 13