Home > hfrc > matlab > utility > mindist.m

mindist

PURPOSE ^

MINDIST - computes minimum distances between points.

SYNOPSIS ^

function [dd,I] = mindist( x1, y1, x2, y2, d )

DESCRIPTION ^

 MINDIST - computes minimum distances between points.

 Usage: [dist,indices] = mindist( x1, y2, x2, y2, DIM )

 x1 and y1 should be of the same size, as should x2 and y2.  One of x1
 and x2 should be a row vector, the other should be a column vector.

 DIM is the dimension over which to find the minimum.  If not given, the
 short dimension of x1 will be used.

 This function will have problems determining DIM automatically if
 x1 is a scalar.  In that case, specify DIM explicitly.

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

     $Id: mindist.m,v 1.1 2004-09-08 03:31:13 dmk Exp $    

 Copyright (C) 2001 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