www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ComputeCovarianceOfTwoVectorsExample.m
%% Covariance of Two Vectors % Create two vectors and compute their 2-by-2 covariance matrix. % Copyright 2015 The MathWorks, Inc. A = [3 6 4]; B = [7 12 -9]; cov(A,B)