matlab mxisstruct函数语法

发表matlab mxisstruct函数相关文章
一句话说明: Determine whether input is structure array

mxIsStruct (C and Fortran)

Determine whether input is structure array

C Syntax

#include "matrix.h"
bool mxIsStruct(const mxArray *pm);

Fortran Syntax

integer*4 mxIsStruct(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if pm points to a structure mxArray, and logical 0 (false) otherwise.

Description

Use mxIsStruct to determine whether pm points to a structure mxArray. Many routines (for example, mxGetFieldNameByNumber and mxSetField) require a structure mxArray as an argument.

Examples

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

See Also

mxCreateStructArray, mxCreateStructMatrix, mxGetFieldNameByNumber, mxGetField, mxSetField

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

与matlab mxisstruct用法相关的文章

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