Summation of array - MATLAB Cody - MATLAB Central

Problem 42450. Summation of array

Difficulty:Rate

Given an array, Find the sum of all of the elements in it

Examples:

Input x = [1 2 3 5; 4 5 6 7];

Output y is 33

Solution Stats

64.99% Correct | 35.01% Incorrect
Last Solution submitted on Jun 23, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers363

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!