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
-
Given a matrix, swap the 2nd & 3rd columns
1274 Solvers
-
Sum the numbers on the main diagonal
617 Solvers
-
Find the square of the sum of the digits of a number
161 Solvers
-
1133 Solvers
-
119 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!