Array Max & Min Function

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Array Functions

Requires: Base Development System

Returns the maximum and minimum values found in array, along with the indexes for each value.

The connector pane displays the default data types for this polymorphic function.

Details  

array can be an n-dimensional array of any type.
max value is of the same data type and structure as the elements in array.
max index(es) is the index for the first max value. If array is multidimensional, max index(es) is an array whose elements are the indexes for the first maximum value in array.
min value is of the same data type and structure as the elements in array.
min index(es) is the index for the first min value. If array is multidimensional, min index(es) is an array whose elements are the indexes for the first minimum value in array.

Array Max & Min Details

The function compares each data type according to the rules for Array Comparison.

If a numeric array has one dimension, the max index and min index outputs are scalar integers. If a numeric array has more than one dimension, these outputs are 1D arrays that contain the indexes of the maximum and minimum values.

If the input array is empty, max index and min index are –1.

WAS THIS ARTICLE HELPFUL?

Not Helpful