[...] can compute the sample covariance matrix by using the following statements: /** check the sample covariance **/ C = X - SampleMean; …