This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Sorting and Reshaping Arrays

Sort, rotate, permute, reshape, or shift array contents


blkdiag Construct block diagonal matrix from input arguments
circshift Shift array circularly
ctranspose Complex conjugate transpose
diag Create diagonal matrix or get diagonal elements of matrix
flip Flip order of elements
fliplr Flip array left to right
flipud Flip array up to down
ipermute Inverse permute dimensions of N-D array
permute Rearrange dimensions of N-D array
repelem Repeat copies of array elements
repmat Repeat copies of array
reshape Reshape array
rot90 Rotate array 90 degrees
shiftdim Shift dimensions
issorted Determine whether set elements are in sorted order
sort Sort array elements
sortrows Sort array rows
squeeze Remove singleton dimensions
transpose Transpose vector or matrix
vectorize Vectorize expression
Was this topic helpful?