<< nan_quantile Descriptive Statistics nan_ranks >>

NaN Toolbox >> NaN Toolbox > Descriptive Statistics > nan_range

nan_range

Range of values

Calling Sequence

y = nan_range(x)
y = nan_range(x,dim)

Description

If xis a vector, return the range, i.e., the difference between the maximum and the minimum, of the input data.

If x is a matrix, do the above for each column of x.

If the optional argument dim is supplied, work along dimension

Examples

rv = grand(1000,5,'nor',0,1);
near6 = nan_range(rv)
near6 =
7.8095835    5.8340675    6.2329766    5.9988651    6.86021

Authors

<< nan_quantile Descriptive Statistics nan_ranks >>