Download Help (Windows Only) 
Owning Class: statistics
Requires: MathScript RT Module
y = var(x)
y = var(x, w)
y = var(x, w, d)
Computes the variance of the input elements. This function works columnwise for matrices by default.
Name  Description  

x  Specifies a matrix.  
w  Specifies a weight. w is a vector.  
d  Specifies the dimension of x across which to compute the variance if x is a matrix. d is a scalar that accepts the following values.

Name  Description 

y  Returns the variance of x. y is a scalar or vector. 
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
X = [1, 2, 3, 4, 5, 6; 2, 4, 6, 8, 10, 12]
Y = var(X)
Helpful
Not Helpful