FUNCTION REFERENCE

flipdim

Reverse an array along a dimension.

Reverse an array along a dimension.

Syntax

flipdim(A, DIM)

Reverses rows for DIM=1 or columns for DIM=2, preserving the class. Dimensions greater than 2 leave a 2-D array unchanged.

Example

flipdim([1 2 3], 2)   % [3 2 1]

Differences from MATLAB: N-D arrays are not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.