Home > hfrc > matlab > utility > mindist1D.m

mindist1D

PURPOSE ^

MINDIST1D - computes minimum distances between numbers.

SYNOPSIS ^

function [dd,I] = mindist1D( x1, x2, d )

DESCRIPTION ^

 MINDIST1D - computes minimum distances between numbers.

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

 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: mindist1D.m,v 1.1 2006-06-23 22:13:15 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