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

root/gliderproc/trunk/MATLAB/matutil/inrange.m

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

Initial import of Stark code.

Line 
1
2         function [ind,jnd,v] = inrange(data,drange);
3        
4 dmin=min(drange); dmax=max(drange);
5
6 ind=find((data>=dmin) & (data<=dmax));
7
8 if(nargout>1)
9   [ind,jnd]=ind2sub(size(data),ind);
10 end
Note: See TracBrowser for help on using the browser.