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,

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 a Multiple Elements