Skip to Main Content Skip to Search
Product Documentation

min - Smallest element in array of fi objects

Syntax

min(a)
min(a,b)
[y,v] = min(a)
[y,v] = min(a,[],dim)

Description

min(a,b) returns an array the same size as a and b with the smallest elements taken from a or b. Either one can be a scalar.

[y,v] = min(a) returns the indices of the minimum values in vector v. If the values along the first nonsingleton dimension contain more than one minimal element, the index of the first one is returned.

[y,v] = min(a,[],dim) operates along the dimension dim.

When complex, the magnitude min(abs(a)) is used, and the angle angle(a) is ignored. NaNs are ignored when computing the minimum.

See Also

max | mean | median | sort

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS