I have array1 that is1024 long and contains a variety of results, I then have array2 which changes size and contains the indices I want from array1. So what I want to is extract those particular values from array1 into a new array but I am not sure how. So if array2 is [0,5,6,128] I want to extract the values at those positions in array1 into a new array. Does that make sense?
The tricky bit is that array2 changes size so the extraction process needs to be able to dynamically change.
