Cody

Problem 3. Find the sum of all the numbers of the input vector

Created by Cody Team in Cody Challenge

Find the sum of all the numbers of the input vector x.

 Examples:
Input  x = [1 2 3 5]
Output y is 11
Input  x = [42 -1]
Output y is 41

Solution Stats

63.27% Correct | 36.73% Incorrect
Last solution submitted on Jul 19, 2018

Problem Comments

Solution Comments

Recent Solvers20408

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!