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

New to MATLAB?

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

Created by Cody Team

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

Tags

Problem Group

Solution Statistics

9790 correct solutions 3973 incorrect solutions
Last solution submitted on Apr 20, 2015

Problem Comments

Solution Comments