>  Docs Center  >  Libraries  >  Daithi  >  DIMENSION
Libraries

DIMENSION

DIMENSION

Name


DIMENSION

Purpose


This function returns the dimension of an array. It returns 0
if the input variable is scalar.

Category


Array

Calling Sequence


Result = DIMENSION( Inarray )

Inputs


Inarray: A scalar or array of any type.

Outputs


Result: The dimension of Inarray. Returns 0 if scalar.

Procedure


This function runs the IDL function SIZE.

Example


Define a 3*4-element array.
x = findgen(3,4)
Calculate the dimension of x.
result = dimension( x )

Modification History


  Written by: Daithi A. Stone, 2000-07-05.



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