mean edit page

computes the mean vector

Syntax

% average direction with respect to the first nonsingleton dimension
m = mean(v)
% average direction along dimension d
m = mean(v,d)
% average axis
m = mean(v,'antipodal')

Input

v vector3d

Output

m vector3d

Options

antipodal include antipodal symmetry
robust robust mean (with respect to outliers)