Home > hfrc > matlab > @HFRC > nearest.m

nearest

PURPOSE ^

NEAREST - Finds the grip points closest to a series of other points.

SYNOPSIS ^

function [I,dd] = nearest( h, c )

DESCRIPTION ^

 NEAREST - Finds the grip points closest to a series of other points.

 Usage: [ Indices, dist ] = nearest( hfrc_obj, coords )

 coords should be a 2 column (lon,lat) array.  The second output
 argument is optional and gives the distances from the coords to the
 grid points in Indices.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: nearest.m,v 1.1 2003-05-02 20:30:47 dmk Exp $    

 Copyright (C) 2003 David M. Kaplan
 Licence: GPL

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003