y=var(x) y=var(x,w) y=var(x,w,dim)
a vector or matrix.
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.
consider the variance along the dimension of X. 1 for clumun wise variamce and 2 for row wise variance.
returns the variance of the values in X.