Home > lib > peak_closest.m

peak_closest

PURPOSE ^

result = peak_closest(db, a)

SYNOPSIS ^

function result = peak_closest(db, a)

DESCRIPTION ^

 result = peak_closest(db, a)
 
 returns index of peak closest to a

 a can be either the number of a wavenumber or
 the wavenumber itself, because it is easy to distinguish one from the
 other

 result is an index of an element in db, such as db.names(result),
 db.centres(result) of db.indexes(result)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 18-Feb-2010 12:47:47 by m2html © 2003