www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/UseAlternateNormalizationFactorForCovarianceExample.m

    %% Specify Normalization Weight
% Create a matrix and compute the covariance normalized by the number of rows.

% Copyright 2015 The MathWorks, Inc.

A = [1 3 -7; 3 9 2; -5 4 6];
C = cov(A,1)