Quaternion Function Reference

mean

Average or mean value
(Quaternion overloading of standard MATLAB® function)

Syntax

Y = mean(X, dim)

Description

mean(X, dim) computes the mean values of the elements of the quaternion array X along dimension dim. If omitted, dim defaults to the columns of X.

Examples

>> mean([qi, qj, qk])
 
ans = 0.3333 * I + 0.3333 * J + 0.3333 * K

See Also

MATLAB® function: mean

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

License terms.