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

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

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Member of the statistics class.

Syntax

c = median(a)

Description

Computes the median value.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies the dimension of a across which to compute the median if a is a matrix. b is a scalar that accepts the following values.

1 (default) Computes the column-wise medians.
2 Computes the row-wise medians.

Outputs

Name Description
c Returns the median of a. If a is a vector, c returns the median value of all elements in a. If a is a matrix, c returns a row vector of column-wise medians or a column vector of row-wise medians. c is a scalar or vector.

Examples

A = [1:1:15]
C = median(A)

Related Topics

cov
mean
max
min
std


Resources


 

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