Problem 57540. Repeatitive Summation
Given numeric vectors x, a and b, perform the following operation -
a represents a vector of numbers and b represents a vector of indices; corresponding to the values in b, add the values of a to x.
Explaination - Add a(1) to x(b(1)), a(2) to x(b(2)) and so on.
Note - Values in x and a will belong to Real numbers, values in b will be Integers in the range [1, numel(x)]. Test suite will be updated regularly.
Restrictions - loops and recursion are not allowed.
Solution CommentsShow comments
Problem Recent Solvers7