www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ComputeCovarianceOfTwoMatricesExample.m
%% Covariance of Two Matrices % Create two matrices of the same size and compute their 2-by-2 covariance. % Copyright 2015 The MathWorks, Inc. A = [2 0 -9; 3 4 1]; B = [5 2 6; -4 4 9]; cov(A,B)