matlab mxgetclassname函数语法

发表matlab mxgetclassname函数相关文章
一句话说明: Class of array as string

mxGetClassName (C and Fortran)

Class of array as string

C Syntax

#include "matrix.h"
const char *mxGetClassName(const mxArray *pm);

Fortran Syntax

character*(*) mxGetClassName(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Class (as a string) of the mxArray pointed to by pm.

Description

Call mxGetClassName to determine the class of an mxArray. The class of an mxArray identifies the kind of data the mxArray is holding. For example, if pm points to a logical mxArray, mxGetClassName returns logical.

mxGetClassID is like mxGetClassName, except that the former returns the class as an integer identifier, as listed in the mxClassID reference page, and the latter returns the class as a string, as listed in the mxIsClass reference page.

Examples

See the following examples in matlabroot/extern/examples/mex.

See the following examples in matlabroot/extern/examples/mx.

See Also

mxGetClassID, mxIsClass

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

与matlab mxgetclassname用法相关的文章

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