median (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助