fliplr
Flip an array left-to-right (reverse columns).
Syntax
Section titled “Syntax”B = fliplr(A)Description
Section titled “Description”Reverses the order of columns in A — column 1 becomes the last column, column 2 becomes second-to-last, etc. Equivalent to flipdim(A, 2) for 2D matrices.
Examples
Section titled “Examples”fliplr([1 2 3]) % [3 2 1]fliplr([1 2; 3 4]) % [2 1; 4 3]