flipdim
Flip an array along the specified dimension.
Syntax
Section titled “Syntax”B = flipdim(A, dim)Description
Section titled “Description”Reverses the order of elements along dimension dim. flipdim(A, 1) is flipud(A); flipdim(A, 2) is fliplr(A). For higher dimensions, useful when you need to reverse a specific axis of an N-D array.
Examples
Section titled “Examples”A = reshape(1:24, [2 3 4]);flipdim(A, 3); % reverse along the 3rd dimension