>  Docs Center  >  Libraries  >  Daithi  >  LENGTH
Libraries

LENGTH

LENGTH

Name


      LENGTH

Purpose


      Find the length of a vector (or the longest dimension of an array).

Category


      Array

Calling Sequence


      result = Length(array)

Inputs


      array: a vector or array.

Outputs


      result: the length of the input vector (if the input is an
              array with more than 1 dimension then result is the
              length of the longest dimension of 'array').

Example


  IDL> a = StrArr(10)
  IDL> Print,Length(a)
            10
  IDL> b = FltArr(10,10,100)
  IDL> Print,Length(b)
            100

Modification History


  Written by: Edward C. Wiebe, 2002-06-09.



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