Given a combining function, a cell array, and an initial value, accumulate the result.
should return 10, while
should return 24.
The elements of C should be such that the combining function can apply to them without generating an error (all the same size, for example).
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more