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

median (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: statistics

Requires: MathScript RT Module

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.

Details

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

Examples

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

Related Topics

covarmx
max
mean
min
std


 

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