NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
variant ArrayMin ( const variant &  src[],
unsigned int  idx,
unsigned int  len 

Calculate the minimum of the elements in a numeric array.

This function calculates the minimum of all or a subset of the elements in the numeric src array.

This function requires the enhanced NBC/NXC firmware.
srcThe source numeric array.
idxThe index of the start of the array subset to process. Pass NA to start with the first element.
lenThe number of elements to include in the calculation. Pass NA to include the rest of the elements in the src array (from idx to the end of the array).
The minimum of len elements from the src numeric array (starting from idx).
You cannot use NXC expressions with this function
ex_ArrayMin.nxc, and ex_ArraySort.nxc.