Search In Array
Description
Searches for an element in an array starting at start index. The search is linear and the function stops searching as soon as the element is found.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). array : class, n-dimentional tensor.
Documentation illustration (illustration unavailable in the archive). element : float, value to search for in the array. element must be the same data type as the elements in unsorted array.
Documentation illustration (illustration unavailable in the archive). start index : array, index that function begins the search from.
Output parameters
Documentation illustration (illustration unavailable in the archive). found ? : boolean, if true, then the element has been found in the array.
Documentation illustration (illustration unavailable in the archive). index : array, index of element is the index where element is found.
Examples
All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).
Search In 1D Array
Documentation illustration (illustration unavailable in the archive).
Search In 2D Array
Documentation illustration (illustration unavailable in the archive).
Search In 3D Array
Documentation illustration (illustration unavailable in the archive).
