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

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

c = mean(a, b)

Description

Computes the mean value.

Examples

Inputs

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

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

Outputs

Name Description
c Returns the mean of a. If a is a vector, c returns the mean value of all elements in a. If a is a matrix, c returns a vector of the means of each of the rows or columns in a, depending on the value of b. 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 = mean(A)

Related Topics

covarmx
max
median
min
std


 

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