C Math Library Reference | ![]() ![]() |
Minimum number of arguments: two, maximum: user-defined. Terminate the argument list with a NULL
.
C Prototype
mxArray *mlfGetfield(mxArray *in1, mxArray *in2, ...);
C Syntax
#include "matlab.h" mxArray *s; /* Required input argument(s) */ mxArray *i, *j, *k; /* Optional input argument(s) */ mxArray *f = NULL; /* Return value */ mlfAssign(&f, mlfGetfield(s,mxCreateString("field
"),NULL)); mlfAssign(&f, mlfGetfield(s, mlfCellhcat(i,j,NULL), mxCreateString("field
"), mlfCellhcat(k,NULL), NULL));
MATLAB Syntax
f = getfield(s,'field
') f = getfield(s,{i,j},'field
',{k})
See Also
getfield
Calling Conventions![]() | mlfGcd | mlfGmres | ![]() |