File Exchange

image thumbnail

Sum of values on the perimeter of a matrix

version 1.0.01 (1.16 KB) by Ibrahim Abouemira
The Function computes the sum of the elements of an input matrix A that are on the “perimeter” of A.

2 Downloads

Updated 19 May 2019

View License

The Function computes the sum of the elements of an input matrix A that are on the “perimeter” of A. In other words, it adds together the elements that are in the first and last rows and columns. Note that the smallest dimension of A is at least 2.

Cite As

Ibrahim Abouemira (2020). Sum of values on the perimeter of a matrix (https://www.mathworks.com/matlabcentral/fileexchange/71595-sum-of-values-on-the-perimeter-of-a-matrix), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.01

Tags are added

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux