Using the C Math Library    

Assumptions for the Code Examples

The C code included in the following sections demonstrates how to perform indexing with the MATLAB C Math Library. For the most part, each example only presents the call to an indexing function. As you read the examples, assume that the code relies on declarations, assignments, and deletions that follow these conventions:

Refer to the online MATLAB C Math Library Reference for more information on mlfScalar(), mlfCreateColonIndex(), mxCreateDoubleMatrix(), mxGetPr(), mlfHorzcat(), and mlfVertcat().


 Specifying a Source Array for Assignments One-Dimensional Indexing