writeop4 (+FEA)


Purpose

Write to a Nastran Output4 file.

Syntax

writeop4(mat)
filename = writeop4(fname,mat,ndigits,'append','silent')

Description

WRITEOP4 exports matrices to Nastran Output4 (OP4) format. Currently WRITEOP4 handles real square or rectangular matrices.

FNAME is an optional input string containing the name of the OP4 file to write. If not supplied, or it contains wildcard characters ('*' or '?'), the user will be prompted with a graphical file dialog.

MAT is a structure containing the matrices. It must at minimum have the following fields:

.name String (8 characters maximum) containing the matrix name.
.matrix

Matrix to export.

NDIGITS specifies the number of digits of precision desired. The default is 7. WRITEOP4 will determine the appropriate format specifier based on this.

The optional string 'silent' suppresses output. The optional string 'append' causes WRITEOP4 to append to the file if it exists. The default is to overwrite.

FILENAME is a string containing the full path and filename of the file written.

See Also

readnas