imat_shp/writecsv


Purpose

Writes animat_shpto a CSV file.

Syntax

writecsv(s)
fname=writecsv(s,fname)
fname=writecsv(s,fname,atts,'silent')
fname=writecsv(s,fname,'append')

Description

WRITECSV writes the supplied imat_shp S to a comma-separated variable text file. If the nodes are the same, it writes the node list to the first column only. Otherwise it writes the nodes for each shape. Complex shape coefficients are written as real/imaginary components. Attribute names and values are written in the first several lines of the file.

FNAME is an optional string specifying the filename to write to. If not supplied, or if it contains wildcards (? or *), the user will be prompted with a graphical file dialog.

ATTS is an optional cell array of strings containing attributes to write. If not supplied, default attributes are written. These are Frequency, Damping, OrdNumDataType, IDLine1, and IDLine4.

Passing in the optional string 'append' causes WRITECSV to append to the file if it exists, rather than overwriting.

Passing in the optional string 'silent' suppresses output.

See Also

imat_fn/writecsv