Is there a fast way to create a vector of indices taking as an input two vectors containing the start and stop indices?
I want:
a = [2 7 9 17]; b = [4 7 12 17];c = fun(a,b) = [2 3 4 7 9 10 11 12 17];
indexindexing
a = [2 7 9 17]; b = [4 7 12 17];c = fun(a,b) = [2 3 4 7 9 10 11 12 17];
Best Answer