flip

  • flip(A,<dim>)
    • Flips array A along dimension dim
    • dim defaults to the first dimension whose size is not 1
      • For a vector, this flips along the length direction
      • For a (non-vector) matrix, this is a top-bottom flip—row order is reversed
    • In particular, for a non-vector matrix
      • flip(A,1) = flipud(A)
      • flip(A,2) = fliplr(A)