Given a matrix of random integers, calculate the sum of all the integers in the cornice of the matrix.
For example if MTX = [ 1 3 5 6;
4 7 9 2;
5 6 1 3;
7 9 2 1]
output = 1 + 3 + 5 + 6 + 4 + 2 + 5 + 3 + 7 + 9 + 2 + 1 = 48
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers58
Suggested Problems
-
1635 Solvers
-
Set the array elements whose value is 13 to 0
1459 Solvers
-
Area of an equilateral triangle
7013 Solvers
-
Rounding off numbers to n decimals
5817 Solvers
-
Determine if a row vector has NaN
137 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!