Using the C Math Library    

Selecting a Single Element 

Use two scalar indices to extract a single element from an array.

For example,

selects the element 5 from the center of matrix A (the element at row 2, column 2).


 Overview Selecting a Vector of Elements