SUM function
Syntax: | s = SUM(x)
|
The SUM
function only accepts a vector argument, and returns the sum of the
elements of that vector. The result is a scalar value.
Example
Suppose X = [1;2;3;4;5;6;7;8;9;10]
, then A = SUM(X)
returns
scalar A
with the value 55
.