Binary Search

버전 1.0.0.0 (1.55 KB) 작성자: Aroh Barjatya
Binary search of values in a data vector.
다운로드 수: 6.1K
업데이트 날짜: 2005/10/20

라이선스 보기

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.

인용 양식

Aroh Barjatya (2025). Binary Search (https://kr.mathworks.com/matlabcentral/fileexchange/7552-binary-search), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기
도움

도움 준 파일: Binary Search for numeric vector

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

update for out of bound values