function total
Returns the sum of all values in X. Undefined values (INF and NaN) are ignored.
Syntax
result = total(X [, ignore] [,/x | /y | /z | /xy | /xz | /yz])
Arguments
X: | A matrix. |
ignore: | An optional value which should be ignored. |
Switches
/x: | Calculate the sum along the first axis |
/y: | Calculate the sum along the second axis |
/z: | Calculate the sum along the third axis |
/xy: | Calculate the sum along the first and second axes |
/xz: | Calculate the sum along the first and third axes |
/yz: | Calculate the sum along the second and third axes |
Examples
Calculate a sum image of a 3D cube:
result = total(cube, /z)
See also
function max
function min
function avg
function median
function stddev
function meddev