var
Calling Sequence
y=var(x)
y=var(x,w)
y=var(x,w,dim)
Parameters
x:
a vector or matrix.
w:
weight vector W of length X, or may take the value of 0 and 1. The default value is 0. Consider only non-negative values.
dim:
consider the variance along the dimension of X. 1 for clumun wise variamce and 2 for row wise variance.
y:
returns the variance of the values in X.