Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Smallest element in array of `fi`

objects

`x = min(a)`

`x= min(a,[],dim)`

```
[x,y] =
min(___)
```

`m = min(a,b)`

returns
the smallest elements along different dimensions of `x`

= min(`a`

)`fi`

array `a`

.

If `a`

is a vector, `min(a)`

returns
the smallest element in `a`

.

If `a`

is a matrix, `min(a)`

treats
the columns of `a`

as vectors, returning a row vector
containing the minimum element from each column.

If `a`

is a multidimensional array, `min`

operates
along the first nonsingleton dimension and returns an array of minimum
values.

When `a`

or `b`

is complex,
the `min`

function returns the element with the smallest
magnitude. If two magnitudes are equal, then `min`

returns
the first value. This behavior differs from how the builtin `min`

function resolves ties between complex
numbers.

Was this topic helpful?