Binary Search for numeric vector

Search given value in a sorted vector, returns the index of location where the value is found.

이 제출물을 팔로우합니다

INPUT:
x: vector of numeric values, x should already be sorted in ascending order
(e.g. 2,7,20,...120)
sval: numeric value to be search in x

OUTPUT:
index: index of sval with respect to x. If sval is not found in x then index is empty.

인용 양식

Dr. Murtaza Ali Khan (2026). Binary Search for numeric vector (https://kr.mathworks.com/matlabcentral/fileexchange/11287-binary-search-for-numeric-vector), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: Binary Search

카테고리

Help CenterMATLAB Answers에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.1.0.0

BSD License

1.0.0.0

Spelling corrections in description