|
|
| File Information |
| Description |
bsearch(x,var)
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. If the values in 'var' are outside the range of 'x' then either 1 or length(x) are returned as indices for those values. |
| Acknowledgements |
This submission has inspired the following:
Binary Search for numeric vector
|
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (13) |
| 02 May 2005 |
Mukhtar Ulah
|
|
|
| 05 Jun 2005 |
M Khan
|
|
|
| 10 Sep 2005 |
Ji Soo Yi
|
|
|
| 19 Oct 2005 |
Aroh Barjatya
|
|
|
| 21 Nov 2005 |
M Khan
|
|
|
| 25 May 2006 |
Paresh Murthy
|
|
|
| 19 Dec 2006 |
Russ S
|
|
|
| 09 Feb 2008 |
Mariano Beguerisse
|
|
|
| 15 Apr 2009 |
Julio
|
|
|
| 27 Aug 2009 |
C. Chaya
|
|
|
| 11 Sep 2009 |
gromi
|
|
|
| 04 Dec 2010 |
Zhiqiang Zhang
|
|
|
| 17 Feb 2011 |
dmitry.grigoryev@uha.fr
|
|
|
| Updates |
| 20 Oct 2005 |
update for out of bound values |
|
Contact us at files@mathworks.com