SUM(A, col)

Version (1.11 KB) by Carson
Summation function for adding elements of entire column in array
Updated 5 May 2011

View License

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 (2024). SUM(A, col) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: Sumatoria de elementos diagonales de matriz

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes