min
Smallest element in array of fi objects
Syntax
Description
returns the smallest elements along different dimensions of M = min(A)fi array
A.
If
Ais a vector,min(A)returns the smallest element inA.If
Ais a matrix,min(A)treats the columns ofAas vectors, returning a row vector containing the minimum element from each column.If
Ais a multidimensional array,minoperates along the first nonsingleton dimension and returns an array of minimum values.
Examples
Input Arguments
Output Arguments
Algorithms
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 built-in min function resolves ties between complex numbers.
