Using the C Math Library    

Selecting a Single Element 

Use a scalar index to select a single element from the array. For example,

performs the same operation as A(5) in MATLAB and selects the fifth element of A, the number 5.


 Overview Selecting a Vector