array_upperBound()

Returns the upper bound of the specified dimension in an AEL array. Since this function does not work on HPvars, ensure that the parameters passed are arrays.

See also: offset_array(), resize_array(), array_size(), array_type(), array_lowerBound(), convert_array().

Syntax:

ub = array_upperBound(<arr>,<dim>);

where

arr is a valid AEL array.

ub is an integer or NULL_VALUE if unsuccessful.

Example:
decl a = {{1,2,3},{4,5,6}};
fputs(stderr, array_upperBound(a,1));  // outputs 1
fputs(stderr, array_upperBound(a,2));  // outputs 2

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources