Welcome to our Support Center

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.

 

Input parameters

 

array : class, n-dimentional tensor.
element : float, value to search for in the array. element must be the same data type as the elements in unsorted array.
start index : array, index that function begins the search from.

Output parameters

 

found ? : boolean, if true, then the element has been found in the array.
index : array, index of element is the index where element is found.

Example

All these exemples 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 PERRINE library to run it).

Search In 1D Array

Search In 2D Array

Search In 3D Array

Table of Contents
Index