SINDGEN Function
Returns a
string array with the specified dimensions.
Usage
result
= SINDGEN(
dim
1
, ... ,
dim
n
)
Input Parameters
dim
i
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. These rules are described in
Free Format Output
in Chapter 8 of the
PV
-
WAVE Programmer's Guide
.
Example
This example creates a 4-by-2 string array.
a = SINDGEN(4, 2)
; Create the string arra
y.
INFO, a
A STRING = Array(4, 2)
PRINT, a
0 1 2 3
4 5 6 7
See Also
BINDGEN
,
CINDGEN
,
DINDGEN
,
FINDGEN
,
INDGEN
,
LINDGEN
doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.