Calculate Sum of all elements of an array.
A = [1 3 4 6]
calculate_sum(A) = 14
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers87
Suggested Problems
-
Return the largest number that is adjacent to a zero
5527 Solvers
-
1767 Solvers
-
Check if number exists in vector
14325 Solvers
-
Sum the 'edge' values of a matrix
405 Solvers
-
110 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!