# min

Minimum elements of array

## Syntax

## Description

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 of`A`

.If

`A`

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

operates along the first dimension of`A`

whose size is greater than`1`

, treating the elements as vectors. The size of`M`

in this dimension becomes`1`

, while the sizes of all other dimensions remain the same as in`A`

. If`A`

is an empty array whose first dimension has zero length, then`M`

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

.If

`A`

is a table or timetable, then`min(A)`

returns a one-row table containing the minimum of each variable.*(since R2023a)*

specifies whether to omit or include missing values in `M`

= min(`A`

,[],___,`missingflag`

)`A`

for
any of the previous syntaxes. For example,
`min(A,[],"includemissing")`

includes all missing values
when computing the minimum. By default, `min`

omits missing
values.

also specifies how to treat missing values.`C`

= min(`A`

,`B`

,`missingflag`

)

`___ = min(___,"ComparisonMethod",`

optionally specifies how to compare elements for any of the previous syntaxes.
For example, for a vector `method`

)`A = [-1 2 -9]`

, the syntax
`min(A,[],"ComparisonMethod","abs")`

compares the elements
of `A`

according to their absolute values and returns a minimum
value of `-1`

.

## Examples

## Input Arguments

## Output Arguments

## Extended Capabilities

## Version History

**Introduced before R2006a**