Sum of fi
array elements
returns the
sum along different dimensions of the S
= sum(A
)fi
array
A
.
If A
is a vector,
sum(
returns the sum of the
elements.A
)
If A
is a matrix,
sum(
treats the columns of
A
)A
as vectors, returning a row vector of the sums of each
column.
If A
is a multidimensional array,
sum(
treats the values along the first
non-singleton dimension as vectors, returning an array of row vectors.A
)
sum
does not support fi
objects of data type
Boolean
.