SUM(A, col)

Summation function for adding elements of entire column in array

You are now following this Submission

This function eases the transition to MATLAB for Excel users. The function will add all elements in a column through the function call:

x = SUM(A, col);

where A is an array and col is the column over which the user would like to add all elements. This format works similarly to the Excel "sum()" function and will ideally prove useful to beginning MATLAB users.

Cite As

Carson (2026). SUM(A, col) (https://www.mathworks.com/matlabcentral/fileexchange/31337-sum-a-col), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Sumatoria de elementos diagonales de matriz

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0