External Interfaces/API Reference Previous page   Next Page
mxAddField

Add a field to a structure array

C Syntax

Arguments

array_ptr
   Pointer to a structure mxArray.

field_name
   The name of the field you want to add.

Returns

Field number on success or -1 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  C MX-Functions mxArrayToString Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS