| C Math Library Reference | ![]() |
Create an array that acts like the colon operator when passed as an index to an indexing function
C Prototype
mxArray *mlfCreateColonIndex(void);
Description
The mlfCreateColonIndex() index, which loosely interpreted means ``all,'' selects, for example, all the columns in a row or all the rows in a column.
Example
The call to mlfIndexRef() selects all the elements in the first row of array A and assigns them to array B.
mlfAssign(&B, mlfIndexRef(A, "(?,?)", /* Format string */ mlfScalar(1), /* Index value */ mlfCreateColonIndex()); /* Colon */
See Also
mlfIndexAssign, mlfIndexDelete, mlfIndexRef, mlfColon, mlfEnd
| mlfComplexScalar | mlfDoubleMatrix | ![]() |