DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > COLSUM

 

COLSUM

Purpose:

Produces a row of the sums of each column of the input table.

Syntax:

COLSUM(a)

a

-

A series or table.

Returns:

A one-row table with the same number of columns as the input table.

Example:

a = {{2, 4, 6},

     {8, 10, 12}} 

 

b = colsum(a)

 

b == {{10, 14, 18}}

 

See Also:

COL

COLLENGTH

COLMAX

COLMEAN

COLMEDIAN

COLMIN

COLSTDEV

ROWSUM

SUM

TRANSPOSE