Home Entries

Tutorial

Matrix Indexing in MATLAB

Tutorial in which I explain the following methods available in MATLAB to reference matrix elements: linear indexing, subscript indexing, and logical indexing.

MATLAB supports three methods to reference elements in a matrix: linear indexing, subscript indexing, and logical indexing. In this tutorial I explain these methods as well as operators and functions that are useful in the context of matrix indexing.