I have a vector (for example):
A = randn(1,50)
from which I would like to access at specified indices. Those specific indices are listed in two vectors which indicate the start and end. For example:
start = [1, 22, 40]finish = [10, 30, 48].
Without using a loop, can I access use vectors start and finish to access elements from A. Specifically, elements 1:10, 22:30, and 40:48?
Thanks.
Best Answer