Quaternion Function Reference

cumsum

Cumulative sum
(Quaternion overloading of standard MATLAB® function)

Syntax

Y = cumsum(X, dim)

Description

cumsum(X) computes the cumulative sum of the quaternion argument. If the argument is a vector, the result is a vector. If the argument is a matrix, the cumulative sum is computed along the columns by default. As with the equivalent MATLAB® function, the dim parameter permits the sum to be computed along a specified dimension.

See Also

MATLAB® function: cumsum
QTFM functions: cumprod, sum

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.