Check out example codes for "matlab matrix indexing". It will help you in understanding the concepts better.

Code Example 1

v = [16 5 9 4 2 11 7 14];
v(3)     % Extract the third element  (ans = 9)

Learn ReactJs, React Native from akashmittal.com