External Interfaces Reference Previous page   Next Page
mxAddField

Add field to structure array

Fortran Syntax

Arguments

pm
   Pointer to a structure mxArray.

fieldname
   The name of the field you want to add.

Returns

Field number on success, or 0 if inputs are invalid or an out-of-memory condition occurs.

Description

Call mxAddField to add a field to a structure array. You must then create the values with the mxCreate* functions and use mxSetFieldByNumber to set the individual values for the field.

See Also

mxRemoveField, mxSetFieldByNumber


Previous page  Fortran MX-Functions mxCalcSingleSubscript Next page

© 1994-2005 The MathWorks, Inc.