MATLAB Application Program Interface Reference Help Desk

mxSetClassName

Purpose

Convert a MATLAB structure array to a MATLAB object array by specifying a class name to associate with the object

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; 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 | Help Desk | Next ]