fourmoments

Returns the mean, variance, skewness and kurtosis of the sample x.

Syntax

fourmoments(x)

Inputs

x
Sample
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
Returns the mean, variance, skewness and kurtosis of the sample x.

Example

Simple fourmoments example:

x = [0.001:0.002:0.999];
fourmoments(v)
R = [ 0.5 ; 0.0835 ; 7.08176e-015 ; -1.20361 ]