>  Docs Center  >  Libraries  >  JBIU  >  MINFINITE
Libraries

MINFINITE

MINFINITE

Name


    MINFINITE

Purpose


    Calculate the minimum non-zero value of an array.

Category


    Math

Calling Sequence


    Result = MINFINITE(X, [Index])

Inputs


    X: Array

Optional Outputs


    Index: The index of the minimum value.

Outputs


    A scalar containing the minimum non-zero value of X. If there
    are none, returns 0.

Example


    IDL> a = [1, 0, 2]
    IDL> print, MINFINITE(a, i)
          1
    IDL> print, i
              0

Modification History


    Written by: Jeremy Bailin
    17 May 2011 Initial writing



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us