matlab mxsetclassname函数语法

发表matlab mxsetclassname函数相关文章
一句话说明: Structure array to MATLAB object array

mxSetClassName (C)

Structure array to MATLAB object array

C Syntax

#include "matrix.h"
int mxSetClassName(mxArray *array_ptr, const char *classname);

Arguments

array_ptr

Pointer to an mxArray of class mxSTRUCT_CLASS

classname

Object class to which to convert array_ptr

Returns

0 if successful, and nonzero otherwise. One cause of failure is that array_ptr is not a structure mxArray. Call mxIsStruct to determine whether array_ptr is a structure.

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® software 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

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/mxsetclassname

与matlab mxsetclassname用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1