Discover MakerZone

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

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!

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

13819 correct solutions 6911 incorrect solutions
Last solution submitted on May 30, 2016

Problem Comments

Solution Comments