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
#include "matrix.h" int mxSetClassName(mxArray *array_ptr, const char *classname);array_ptr
mxArray
of class mxSTRUCT_CLASS
.
classname
array_ptr
.
0 if successful; nonzero otherwise.
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.
mxIsClass
, mxGetClassID