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

mean (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

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