Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

min (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: basic

Requires: MathScript RT Module


c = min(a)

c = min(a, b)

c = min(a, [], e)

[c, d] = min(a)


Determines the smallest input element. If an element is complex, LabVIEW considers only its magnitude.



Name Description
a Specifies a numeric scalar, vector, or matrix.
b Specifies a scalar, vector, or matrix of the same size as a.
e Specifies the dimension of a in which LabVIEW determines the largest input element. e is an integer.
[] Tells LabVIEW that you want to specify a and e but not b.


Name Description
c Returns the smallest element in a if a is a vector. If a is a matrix, c returns a row vector of the smallest elements in each column of a or a column vector of the smallest elements in each row of a, depending on the value of e. If you specify b, c returns the smallest of the corresponding elements of a and b. c is a scalar or vector.
d Specifies the indexes in a of the smallest elements. d is a scalar or vector.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes


A = rand(3, 3)
C = min(A)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful