Range

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Calculates the range of the values.

Synopsis

y = range(x);
y = range(x,dim);

Inputs

  • x = data vector or matrix.

Optional Inputs

  • dim = dimension for taking the range (default = 1).

Outputs

  • y = range [scalar if (x) is a vector, vector if (x) is a matrix].

Example

>>x = [8  1  6
       3  5  7 
       2  9  2];
>> range(x)
ans =
     6     8     5
>> range(x,2)
ans =
     7
     4
     7

See Also

auto, mncn, normaliz, npreprocess, regcon, scale, snv, std