Documentation Center

  • Trial Software
  • Product Updates

Sorting and Reshaping Arrays

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

Functions

blkdiag Construct block diagonal matrix from input arguments
circshift Shift array circularly
ctranspose Complex conjugate transpose
diag Get diagonal elements or create diagonal 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
repmat Replicate and tile 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
vectorize Vectorize expression
Was this topic helpful?