Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5] Output y is 11
Input x = [42 -1] Output y is 41
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