Minimum elements of an array

`M = min(A)`

`M = min(A,[],dim)`

`M = min(A,[],nanflag)`

`M = min(A,[],dim,nanflag)`

```
[M,I] =
min(___)
```

`M = min(A,[],'all')`

`M = min(A,[],vecdim)`

`M = min(A,[],'all',nanflag)`

`M = min(A,[],vecdim,nanflag)`

```
[M,I] =
min(A,[],___,'linear')
```

`C = min(A,B)`

`C = min(A,B,nanflag)`

returns the minimum elements of an array.`M`

= min(`A`

)

If

`A`

is a vector, then`min(A)`

returns the minimum of`A`

.If

`A`

is a matrix, then`min(A)`

is a row vector containing the minimum value of each column.If

`A`

is a multidimensional array, then`min(A)`

operates along the first array dimension whose size does not equal`1`

, treating the elements as vectors. The size of this dimension becomes`1`

while the sizes of all other dimensions remain the same. If`A`

is an empty array with first dimension`0`

, then`min(A)`

returns an empty array with the same size as`A`

.