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

max (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 = max(a)

c = max(a, b)

[c, d] = max(a)

Description

Determines the largest 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 largest element in a if a is a vector. If a is a matrix, c returns a row vector of the largest elements in each column of a. If you specify b, c returns the largest of the corresponding elements of a and b. c is a scalar or vector.
d Specifies the indexes in a of the largest elements. d is a scalar or vector.

Examples

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

Related Topics

mean
median
min


Resources


 

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