matlab covariance code example Example: matlab covariance cov(A,1) is the population covariance (divides by N), while cov(A)