Indexing
Function
|
Purpose
|
mxArray *
mlfIndexAssign(mxArray * volatile *pa,
const char *index, ...);
|
Handle assignments that include indexing.
|
mxArray *
mlfIndexDelete(mxArray * volatile *pa,
const char *index, ...);
|
Handle deletions that include indexing.
|
mxArray *
mlfIndexRef(mxArray *pa,
const char* index_string, ...);
|
Perform array references such as X(5,:) .
|
mxArray *
mlfColon(mxArray *start, mxArray *step,
mxArray *end);
|
Generate a sequence of indices. Use this where you'd use the colon operator (: ) operator in MATLAB.
mlfColon(NULL, NULL,NULL) is equivalent to mlfCreateColonIndex() .
|
mxArray *
mlfCreateColonIndex(void);
|
Create an array that acts like the colon operator (: ) when passed to mlfArrayRef() , mlfArrayAssign() , and mlfArrayDelete() .
|
mxArray *
mlfEnd(mxArray *array, mxArray *dim,
mxArray *numindices);
|
Generate the last index for an array dimension. Acts like end in the MATLAB expression A(3,6:end) . dim is the dimension to compute end for. Use 1 to indicate the row dimension; use 2 to indicate the column dimension. numindices is the number of indices in the subscript.
|