NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/mat4/range.m

Revision 495 (checked in by cbc, 11 years ago)

Initial import of Stark code.

Line 
1 %
2 % RANGE return the range (extent) of the input data x.
3 %
4 % RANGE(x)  If x is a vector,
5 %           RANGE returns a scalar whose value is max(x)-min(x).
6 %           If x is a matrix, RANGE returns a vector 'retval' whose elements
7 %           equal the range of each column in x.
8 %
9 %           This is a trivial function which serves only to make code
10 %           look cleaner.
11 %
12 % Call as: >> range(x)
13 %
14 %        Brian O. Blanton
15 %        Curr. in Marine Science
16 %        15-1A Venable Hall
17 %        CB# 3300
18 %        Uni. of North Carolina
19 %        Chapel Hill, NC
20 %                 27599-3300
21 %
22 %        919-962-4466
23 %        blanton@marine.unc.edu
24 %
25 %
26 function retval=range(x)
27 retval=max(x)-min(x);
Note: See TracBrowser for help on using the browser.