# flip

Returns R, which is the matrix, `m`,
flipped along the axis, `a`.

## Syntax

R = flip(m)

R = flip(m, a)

## Inputs

`m`- Type: string | mat
`a`(optional)- Specifies the axis about which the elements of
`m`are flipped. If`a`is not specified, the first dimension of`m`greater than 1 is used as a reference for the flip operation.

## Outputs

- R
- Type: string | mat

## Example

Flip with the default axis:

`R = flip([1,2,3,4;5,6,7,8;9,10,11,12])`

```
R = [Matrix] 3 x 4
9 10 11 12
5 6 7 8
1 2 3 4
```

Flip with the axis specified:

`R = flip([1,2,3,4;5,6,7,8;9,10,11,12], 2)`

```
R = [Matrix] 3 x 4
4 3 2 1
8 7 6 5
12 11 10 9
```