The
BINDGEN function returns a
byte array with the specified dimensions. Each element of the array is set to the value of its one-dimensional subscript.
Calling Sequence
Result = BINDGEN(
D
1
, ...,D
n
)
Arguments
D
i
The dimensions of the result. The dimension parameters can be any scalar expression. Up to eight dimensions can be specified. If the dimension arguments are not integer values, IDL will convert them to integer values before creating the new array.
Example
To create a four-element by four-element byte array, and store the result in the variable A, enter:
A = BINDGEN(4,4)
Each element in A holds the value of its one-dimensional subscript. That is, if you enter the command: