Next: max() Up: MacAnova Help File Previous: matrix()   Contents

matwrite()

Usage:
matwrite(fileName, a, b, ... [, new:T, format:Fmt, nsig:n, sep:sepChar,\
  quoted:T or bylines:T,missing:mVal, name:Name, comments:charVec,\
  width:w, header:F, oldstyle:T, stripdols:T]), a, b, ... arbitrary
  variables, Fmt, sepChar and Name CHARACTER scalars with sepChar only a
  single character, charVec a CHARACTER vector or scalar, mVal a REAL
  scalar, w >= 30 integer.



Keywords: files, output
matwrite(FileName,a,b,... [,new:T]) writes REAL, LOGICAL and CHARACTER
variables a, b,...  (scalars, vectors, matrices, or arrays) file
FileName in a form which can be read by matread().  It can also write
NULL variables and structures.  GRAPH variables are legal arguments but
are currently written as NULL variables.  See topic 'NULL'.

matwrite(a,b,...,file:FileName [,new:T]) is an alternative usage.

matwrite() differs from matprint() only in the default format used for
REAL and LOGICAL variables.  It uses the format used by write(), namely
the format specified by option 'wformat'.  This normally provides 9
significant digits.  It is provided to make it easier for you to write
data sets with increased precision without having explicitly to provide
a format.

You can change the default format for write() and matwrite() by
setoptions() using keyword 'wformat'.  See topics setoptions() and
'options'.

See matprint() for information on keywords 'missing', 'sep', 'name',
'header', 'width', 'quoted', 'bylines', and 'comments', macrowrite() for
information on 'oldstyle' and 'stripdols', and print() for information
on keywords 'nsig' and 'format'.

See topic 'matread_file' for a description of the file format.

See also topics print(), write(), matwrite(), macrowrite(), matread(),
'files'.


Gary Oehlert 2003-01-15