%covmatrix源程序
function [C, m] = covmatrix(X)
%COVMATRIX Computes the covariance matrix of a vector population.
% [C, M] = COVMATRIX(X) computes the covariance matrix C and the
% mean vector M of a vector population organized as the rows of
% matrix X. C is of size N-by-N and M is of size N-by-1, where N is
% the dimension of the vectors (the number of columns of X).
% Copyright 2002-2004 R. C. Gonzalez, R. E. Woods, & S. L. Eddins
% Digital Image Processing Using MATLAB, Prentice-Hall, 2004
% $Revision: 1.4 $ $Date: 2003/05/19 12:09:06 $
[K, n] = size(X);
X = double(X);
covmatrix.m
最新推荐文章于 2023-03-05 10:33:17 发布