Skip to content

Array Manipulations

Built-in functions › Mathematics › Array Manipulations

15 functions in this category.

FunctionWhat it does
blkdiagBlock-diagonal matrix from input matrices.
catConcatenate arrays along a specified dimension.
circshiftCircularly shift elements of an array.
diagExtract a diagonal, or build a matrix from a diagonal.
flipdimFlip an array along the specified dimension.
fliplrFlip an array left-to-right (reverse columns).
flipudFlip an array upside down (reverse rows).
ipermuteInverse permute — undo a permute operation.
permuteRearrange dimensions of an N-D array.
repelemReplicate array elements (per-element repetition).
repmatTile an array by replicating its contents.
reshapeReshape an array without changing its data.
rot90Rotate a matrix 90 degrees counter-clockwise.
sortrowsSort rows of a matrix or table by column values.
squeezeRemove singleton dimensions.