%% Covariance of Two Matrices
% Create two matrices of the same size and compute their 2-by-2 covariance.

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

% Copyright 2015 The MathWorks, Inc.