<< moc_randi Matlab/Octave Compatibility toolbox moc_rot90 >>

Matlab/Octave Compatibility toolbox >> Matlab/Octave Compatibility toolbox > moc_range

moc_range

Range of values

Calling Sequence

y = moc_range(x)
y = moc_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 = moc_range(rv)
near6 =
7.8095835    5.8340675    6.2329766    5.9988651    6.86021

Authors


Report an issue
<< moc_randi Matlab/Octave Compatibility toolbox moc_rot90 >>