Matrices and Arrays
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.
Functions
Topics
- Creating, Concatenating, and Expanding Matrices
Create a matrix or construct one from other matrices.
- Array Indexing
Access elements of an array by specifying their indices or by checking whether elements meet a condition.
- Indexed Assignment
Use indexed assignment to modify array elements and enable array growth.
- Removing Rows or Columns from a Matrix
Remove matrix rows or columns.
- Reshaping and Rearranging Arrays
Change the shape or arrangement of elements in an existing array.
- Multidimensional Arrays
Create and manipulate arrays with three or more dimensions.
- Empty Arrays
Create and use empty arrays, which have no elements but have specific dimensions, at least one of which is 0.