Matrices and arrays are the fundamental representation of information and data in MATLAB®. You can create common arrays and grids, combine existing arrays, manipulate an array's shape and content, and use indexing to access array elements. For an overview of matrix and array manipulation, watch Working with Arrays.
Creating and Concatenating Matrices
Create a matrix or construct one from other matrices.
Access or assign to elements of a matrix using methods of row and column indexing.
Resizing and Reshaping Matrices
Change the size, shape, or arrangement of elements in an existing matrix.
Shift matrix elements along one or more dimensions, or sort them into ascending or descending order.
Operating on Diagonal Matrices
Construct and manipulate matrices along a diagonal.
Empty Matrices, Scalars, and Vectors
Work with matrices that have one or more dimensions equal to zero or one.
Create and work with arrays that have more than two dimensions.