FUNCTION REFERENCE

flip

Reverse the order of elements.

Reverse the order of elements.

Syntax

flip(A)

Syntax

flip(A, dim)

Flips along the first non-singleton dimension unless dim is given.

Example

flip([1 2 3])   % [3 2 1]

Differences from MATLAB: Two-dimensional arrays only, including cell and struct arrays. Container results are limited to 65536 slots. Complex arrays keep complex storage and signed zeros.

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