Home > lib > bsearch.m

bsearch

PURPOSE ^

bsearch(x,var)

SYNOPSIS ^

function index = bsearch(x,var)

DESCRIPTION ^

 bsearch(x,var)
 Written by Aroh Barjatya
 Binary search for values specified in vector 'var' within data vector 'x'
 The data has to be pre-sorted in ascending or decending order
 There is no way to predict how the function will behave if there 
 are multiple numbers with same value.
 returns the index values of the searched numbers

CROSS-REFERENCE INFORMATION ^

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