sum - Sum of array elements - MATLAB - MathWorks
Learn how to use sum function in MATLAB to calculate the sum of elements along a specified dimension of an array. See syntax, examples, and input arguments for different types of arrays and dimensions.