Language Fundamentals > Matrices and Arrays

57 functions in MATLAB › Language Fundamentals > Matrices and Arrays.

blkdiagBlock diagonal matrix built from the given matrices.
catJoins arrays along a chosen dimension.
circshiftShifts array elements circularly.
colonFunction form of the colon operator, which builds evenly spaced vectors.
combinationsTable of all combinations of the elements of several lists.
ctransposeComplex conjugate transpose, the function form of the ' operator.
diagBuilds a diagonal matrix from a vector, or extracts a diagonal from a matrix.
eyeIdentity matrix.
falseArray of logical false values.
flipReverses the order of elements along a dimension.
flipdimReverses the order of elements along a dimension (older name of flip).
fliplrFlips an array from left to right.
flipudFlips an array from top to bottom.
freqspaceFrequency grid for frequency responses, normalized so that 1 is the Nyquist frequency.
headFirst rows of an array or table.
horzcatJoins arrays side by side.
ind2subConverts linear indices to row, column and higher subscripts.
inlineCreates a function object from a text expression (older style).
ipermuteInverse of permute: restores the original dimension order.
iscolumnTests whether the input is a column vector.
isemptyTests whether an array has no elements.
ismatrixTests whether the input is a 2-D array.
isrowTests whether the input is a row vector.
isscalarTests whether the input has exactly one element.
issortedTests whether the elements of a vector are in sorted order.
issortedrowsTests whether the rows of a matrix are sorted.
isuniformTests whether the elements of a vector are evenly spaced.
isvectorTests whether the input is a vector.
lengthLength of the largest dimension of an array.
linspaceVector of evenly spaced points between two limits.
logspaceVector of logarithmically spaced points between two powers of ten.
meshgridCoordinate matrices for a 2-D or 3-D grid.
ndgridCoordinate arrays for an N-D grid, in matrix index order.
ndimsNumber of dimensions of an array.
numelNumber of elements in an array.
onesArray of ones.
paddataPads an array with extra values up to a given size.
permuteReorders the dimensions of an array.
randUniformly distributed random numbers in the open interval (0, 1).
repelemRepeats each element of an array a given number of times.
repmatTiles copies of an array.
reshapeChanges the size of an array without changing its elements.
resizeChanges the size of an array by cropping or padding.
rot90Rotates a matrix by multiples of 90 degrees.
shiftdimShifts the dimensions of an array, removing or adding leading singleton dimensions.
sizeSize of an array along each dimension.
sortSorts the elements of an array in ascending or descending order.
sortrowsSorts the rows of a matrix or table by one or more columns.
squeezeRemoves dimensions of length 1 from an array.
sub2indConverts row and column subscripts to linear indices.
tailReturns the last rows of an array or table.
transposeTransposes a matrix, function form of the .' operator.
trimdataTrims an array down to a target size.
trueLogical true value, or an array filled with logical true.
vectorizeAdds element-wise operators to an expression string or inline function.
vertcatConcatenates arrays vertically.
zerosCreates an array of zeros.