Range of values
y = moc_range(x) y = moc_range(x,dim)
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
rv = grand(1000,5,'nor',0,1); near6 = moc_range(rv) near6 = 7.8095835 5.8340675 6.2329766 5.9988651 6.86021 | ![]() | ![]() |