Skip to content
jamesjun edited this page Oct 31, 2017 · 1 revision

Search for indices in a vector (vi) that are between [a,b]

Syntax

  • [vii, ic] = findRange_(vi, a, b, i, n)

Input

  • vi: vector of indices
  • a: start of the search range
  • b: end of the search range
  • i: index of vi to search from
  • n: size of vi

Output

  • vii: index of vectors where
  • ic: next index of vi to search from

Clone this wiki locally