External Interfaces Reference Previous page   Next Page
mxRemoveField

Remove field from structure array

C Syntax

Arguments

array_ptr
   Pointer to a structure mxArray.

field_number
   The number of the field you want to remove. For instance, to remove the first field, set field_number to 0; to remove the second field, set field_number to 1; and so on.

Description

Call mxRemoveField to remove a field from a structure array. If the field does not exist, nothing happens. This function does not destroy the field values. Use mxDestroyArray to destroy the actual field values.

Consider a MATLAB structure initialized to

The field number 0 represents the field name; field number 1 represents field billing; field number 2 represents field test.

See Also

mxAddField, mxDestroyArray, mxGetFieldByNumber


Previous page  mxRealloc mxSetCell Next page

© 1994-2005 The MathWorks, Inc.