Indexing into a matrix is a means of selecting or modifying a subset of elements from the matrix. MATLAB® has several indexing styles that are not only powerful and flexible, but also readable and expressive. Matrices are a core component of MATLAB for organizing and analyzing data, and indexing is key to the effectiveness of manipulating matrices in an understandable way.
Indexing is closely related to another term MATLAB users often hear: vectorization. Vectorization means using MATLAB matrix and vector operations instead of scalar operations—usually resulting in code that is shorter, more mathematically expressive and readable, and sometimes faster.