Search closest value in a vector Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: searchclosest.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: M Khan (View more)

Search closest value in a vector script description:




Publisher review:
Search closest value in a vector - search value in sorted vector and find index and value with respect to vector that is equal Search value 'v' in sorted vector 'x' and find index and value with respect to vector x that is equal or closest to 'v'.If more than one value is equal then anyone can be returned (this is property of binary search).If more than one value is closest then first occurred is returned (this is property of linear search).AlgorithmFirst binary search is used to find v in x. If not found then range obtained by binary search is searched linearlyto find the closest value.INPUT:x: vector of numeric values, x should already be sorted in ascending order (e.g. 2,7,20,...120)v: numeric value to be search in xOUTPUT:i: index of v with respect to x. cv: value that is equal or closest to v in x
Search closest value in a vector is a Matlab script for Mathematics scripts design by M Khan. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Search closest value in a vector - search value in sorted vector and find index and value with respect to vector that is equal

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5