This routine writes the elements of a short array into a file so that they may be viewed later with a graphing program like xmgr.
The arguments are:
This function produces an output file with two columns, containing:
0
array[0]
1
array[1]
...
n-1
array[n-1]
The name of this file is:
name.
where
is the integer specified by filenumber.
Note that if
then
is ``expanded" or ``padded" to three
digits. For example, calling
sgraph(array,1024,"curious",9)
will produce the file
curious.009
containing
lines.