Using the C Math Library | ![]() ![]() |
Assigning to a Single Element
Use one or two scalar indices to assign a value to a single element in a matrix. For example,
mlfIndexAssign(&A, "(?,?)", mlfScalar(2), mlfScalar(1), mlfScalar(17));
changes the element at row 2 and column 1 to the integer 17
. Here, both the source and destination (after the subscript has been applied) are scalars, and thus the same size.
![]() | Overview | Assigning to Multiple Elements | ![]() |