Using the C++ Math Library | ![]() ![]() |
Selecting a Single Element
Use two scalar indices to extract a single element from a matrix.
A(2,2)
selects the element 5
from the center of matrix A
(the element at row 2, column 2).
![]() | Overview | Selecting a Vector of Elements | ![]() |