SINDGEN Function

Returns a string array with the specified dimensions.

Usage

result = SINDGEN(dim1, ... , dimn)

Input Parameters

dimi—The dimensions of the result. This may be any scalar expression and up to eight dimensions may be specified.

Returned Value

result—An initialized string array. If the resulting array is treated as a one-dimensional array, then its initialization is given by the following:

 

Keywords

None.

Discussion

Each element of the array is set to the string representation of the value of its one-dimensional subscript, using the default formatting rules of PV‑WAVE LONGs. These rules are described in the PV‑WAVE Programmer’s Guide.

Example

This example creates a 4-by-2 string array.

a = SINDGEN(4, 2)
INFO, a
; PV-WAVE prints: A     STRING      = Array(4, 2)
PRINT, a
; PV-WAVE prints the following: 
; 0   1   2   3
; 4   5   6   7

See Also

BINDGEN, CINDGEN, DINDGEN, FINDGEN, I32INDGEN, INDGEN, LINDGEN, LINSPACE