matlab mxaddfield函数语法

发表matlab mxaddfield函数相关文章
一句话说明: Add field to structure array

mxAddField (C and Fortran)

Add field to structure array

C Syntax

#include "matrix.h"
extern int mxAddField(mxArray *pm, const char *fieldname);

Fortran Syntax

integer*4 mxAddField(pm, fieldname)
mwPointer pm
character*(*) fieldname

Arguments

pm

Pointer to a structure mxArray

fieldname

Name of the field you want to add

Returns

Field number on success, or -1 if inputs are invalid or an out-of-memory condition occurs.

Description

Call mxAddField to add a field to a structure array. Create the values with the mxCreate* functions and use mxSetFieldByNumber to set the individual values for the field.

See Also

mxRemoveField, mxSetFieldByNumber

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

与matlab mxaddfield用法相关的文章

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