Using the C Math Library    

Specifying a Source Array for Assignments

mlfIndexAssign() requires one more argument than the other two indexing functions: a pointer to an mxArray that contains the new values for the target array. Pass the source array after the mxArray* arguments that specify the values for the subscript. Note that this source array must be exactly the same size as the subset of the target array specified by the indexing expression.


 Specifying the Values for Indices Assumptions for the Code Examples