FUNCTION REFERENCE

fliplr

Flip left to right.

Flip left to right.

Syntax

fliplr(A)

Reverses the order of columns. A character row is reversed too: fliplr('abc') gives 'cba'.

Example

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

Differences from MATLAB: Two-dimensional arrays only, including character, cell and struct arrays. 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.