Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

min (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

c = min(a)

c = min(a, b)

[c, d] = min(a)

Description

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

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies a vector or matrix of the same size as a.

Outputs

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. 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.

Examples

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

Related Topics

max
mean
median


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit