| MATLAB® | ![]() |
#include "matrix.h" extern int mxAddField(mxArray *pm, const char *fieldname);
integer*4 mxAddField(pm, fieldname) mwPointer pm character*(*) fieldname
Pointer to a structure mxArray
Name of the field you want to add
Field number on success or -1 if inputs are invalid or an out-of-memory condition occurs.
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.
mxRemoveField, mxSetFieldByNumber
![]() | mwSize (C and Fortran) | mxArray (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |