MATLAB Function Reference |

**Syntax**

**Description**

```
B = flipud(A)
```

returns `A`

with rows flipped in the up-down direction, that is, about a horizontal axis.

If `A`

is a column vector, then `flipud(A)`

returns a vector of the same length with the order of its elements reversed. If `A`

is a row vector, then `flipud(A)`

simply returns `A`

.

**Examples**

**Limitations**

The array being operated on cannot have more than two dimensions. This limitation exists because the axis upon which to flip a multidimensional array would be undefined.

**See Also**

fliplr | floor |