Writes animat_fn to a CSV file.
writecsv(f)
fname=writecsv(f,fname)
fname=writecsv(f,fname,atts,'silent')
fname=writecsv(f,fname,'append')
WRITECSV writes the supplied imat_fn F to a comma-separated variable text file. If the abscissas are the same, it writes the abscissa to the first column only. Otherwise it writes the abscissa for each function. Complex ordinate values 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 FunctionType, IDLine1, IDLine4, OrdNumDataType, ReferenceCoord, and ResponseCoord.
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.