External Interfaces Reference Previous page   Next Page
mxSetClassName

Convert structure array to MATLAB object array

C Syntax

Arguments

array_ptr
   Pointer to an mxArray of class mxSTRUCT_CLASS.

classname
   The object class to which to convert array_ptr.

Returns

0 if successful, and nonzero otherwise.

Description

mxSetClassName converts a structure array to an object array, to be saved subsequently to a MAT-file. The object is not registered or validated by MATLAB until it is loaded via the LOAD command. If the specified classname is an undefined class within MATLAB, LOAD converts the object back to a simple structure array.

See Also

mxIsClass, mxGetClassID


Previous page  mxSetCell mxSetData Next page

© 1994-2005 The MathWorks, Inc.