User`s guide
MATLAB Compiler Generated Interface Functions
Forexample,considerthisM-fileinterface:
[a,b,varargout] = myfun(x,y,z ,varargin)
The corresponding C interface for this is
void mlfMyfun(int numOfRetVar s, mxArr ay **a, mxArray **b,
mxArray **varargout, mxArray *x, mxArray *y,
mxArray *z, mxArray *varargin)
In this example, the num ber o f elem ents in varargout is (numOfRetVars -
2)
,where2 represents the two actual variables, a and b, being returned. Both
varargin and varargo ut aresinglerow,multiplecolumncellarrays.
7-31