Dear Mathworld Users, I am tackling a rather straightforward problem. Here it is.
1) I have generated an array of values (Array1) 2) I have generated an array of vectors in Array2, whose Length varies, and in each subvector the numbers contain the Position (index) of those elements that I need from Array1. So far so good.
3) What I need is to create a code that picks out those elements from Array 1 and ads them together if Array2's subvectors have more than 1 element.