| MATLAB Application Program Interface | Search  Help Desk |
| mxSetClassName | See Also |
Convert a MATLAB structure array to a MATLAB object array by specifying a class name to associate with the object
C Syntax
#include "matrix.h" int mxSetClassName(mxArray *array_ptr, const char *classname);
Arguments
array_ptrmxArray of class mxSTRUCT_CLASS.
classname
array_ptr.
Returns
0 if successful; 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 theLOAD 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