min

Parent Previous Next

min

[y, id] = min ( x1,x2,... )
[y, id] = x1.min ( x2,... )

Minimum element of an array if there is a single array argument; the minimum value from all values in the arguments

arg

type

Description

Unit or Value scale

x1

SCAL or VCT



x2

SCAL or VCT



...

...

...


Outputs

  • y is the minimum element.
  • id is the index of the minimum element found first.

Notes

Examples

  • a=[8 2 4 6]; min(a) or a.min → 2
  • b=[3 0 -1]; min(a,b) or a.min(b) → -1
  • Multiple output [a,b]=(1:10:120).matrix(3).max() returns
  • a=
    1
    41
    81

    b=
    1
    1
    1

See Also

max

Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease