Sum the 'edge' values of an input matrix (the values along the perimeter).
Example
[1 2 3 4 5 6 7 8 9]
Output = 1 + 2 + 3 + 6 + 9 + 8 + 7 + 4 = 40;
Assumption: Input matrix equal or bigger than 3x3.
how does this work?
"find" can delete,do you agree?
Number of 1s in the Binary Representation of a Number
319 Solvers
180 Solvers
185 Solvers
Matlab Basics - Convert a row vector to a column vector
302 Solvers
Matlab Basics - Pick out parts of a vector
149 Solvers