Function Reference
— Function File: moment (x, p, opt, dim)

If x is a vector, compute the p-th moment of x.

If x is a matrix, return the row vector containing the p-th moment of each column.

With the optional string opt, the kind of moment to be computed can be specified. If opt contains "c" or "a", central and/or absolute moments are returned. For example,

          moment (x, 3, "ac")

computes the third central absolute moment of x.

If the optional argument dim is supplied, work along dimension dim.