Range: Difference between revisions
Jump to navigation
Jump to search
imported>Scott (New page: ===Purpose=== Calculates the range of the values. ===Synopsis=== : y = range(x); : y = range(x,dim); ====Inputs==== * '''x''' = data vector or matrix. ====Optional Inputs==== * '''di...) |
(No difference)
|
Latest revision as of 09:32, 22 September 2008
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