Language Fundamentals > Matrices and Arrays
57 functions in MATLAB › Language Fundamentals > Matrices and Arrays.
blkdiag | Block diagonal matrix built from the given matrices. |
cat | Joins arrays along a chosen dimension. |
circshift | Shifts array elements circularly. |
colon | Function form of the colon operator, which builds evenly spaced vectors. |
combinations | Table of all combinations of the elements of several lists. |
ctranspose | Complex conjugate transpose, the function form of the ' operator. |
diag | Builds a diagonal matrix from a vector, or extracts a diagonal from a matrix. |
eye | Identity matrix. |
false | Array of logical false values. |
flip | Reverses the order of elements along a dimension. |
flipdim | Reverses the order of elements along a dimension (older name of flip). |
fliplr | Flips an array from left to right. |
flipud | Flips an array from top to bottom. |
freqspace | Frequency grid for frequency responses, normalized so that 1 is the Nyquist frequency. |
head | First rows of an array or table. |
horzcat | Joins arrays side by side. |
ind2sub | Converts linear indices to row, column and higher subscripts. |
inline | Creates a function object from a text expression (older style). |
ipermute | Inverse of permute: restores the original dimension order. |
iscolumn | Tests whether the input is a column vector. |
isempty | Tests whether an array has no elements. |
ismatrix | Tests whether the input is a 2-D array. |
isrow | Tests whether the input is a row vector. |
isscalar | Tests whether the input has exactly one element. |
issorted | Tests whether the elements of a vector are in sorted order. |
issortedrows | Tests whether the rows of a matrix are sorted. |
isuniform | Tests whether the elements of a vector are evenly spaced. |
isvector | Tests whether the input is a vector. |
length | Length of the largest dimension of an array. |
linspace | Vector of evenly spaced points between two limits. |
logspace | Vector of logarithmically spaced points between two powers of ten. |
meshgrid | Coordinate matrices for a 2-D or 3-D grid. |
ndgrid | Coordinate arrays for an N-D grid, in matrix index order. |
ndims | Number of dimensions of an array. |
numel | Number of elements in an array. |
ones | Array of ones. |
paddata | Pads an array with extra values up to a given size. |
permute | Reorders the dimensions of an array. |
rand | Uniformly distributed random numbers in the open interval (0, 1). |
repelem | Repeats each element of an array a given number of times. |
repmat | Tiles copies of an array. |
reshape | Changes the size of an array without changing its elements. |
resize | Changes the size of an array by cropping or padding. |
rot90 | Rotates a matrix by multiples of 90 degrees. |
shiftdim | Shifts the dimensions of an array, removing or adding leading singleton dimensions. |
size | Size of an array along each dimension. |
sort | Sorts the elements of an array in ascending or descending order. |
sortrows | Sorts the rows of a matrix or table by one or more columns. |
squeeze | Removes dimensions of length 1 from an array. |
sub2ind | Converts row and column subscripts to linear indices. |
tail | Returns the last rows of an array or table. |
transpose | Transposes a matrix, function form of the .' operator. |
trimdata | Trims an array down to a target size. |
true | Logical true value, or an array filled with logical true. |
vectorize | Adds element-wise operators to an expression string or inline function. |
vertcat | Concatenates arrays vertically. |
zeros | Creates an array of zeros. |