Problem 2353. Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns.
Example :
x= [ 8 1 6]
The total sum of the elements will be 8+1+6= 15.
Solution Stats
Problem Comments
-
2 Comments
Harish Maradana
on 6 Jul 2014
improve test suit
Trần Hoài Nam
on 11 Mar 2022
nice
Solution Comments
Show commentsProblem Recent Solvers570
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15632 Solvers
-
Set the array elements whose value is 13 to 0
1381 Solvers
-
526 Solvers
-
1491 Solvers
-
Matlab Basics II - Count rows in a matrix
383 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!