假设d1是n维的训练样本构成的矩阵,均值向量是e=mean(d1),协方差矩阵是f=cov(d1),那么对于任一一个训练样本,如d1(1,:),它的概率密度值 y = exp((-0.5 * ( d1(1, :) - e )' * inv(f) * ( d1(1 , :) - e ) ) ) / ( sqrt(( 2 * pi)^ n* norm(f) ) )
运行出来说
Warning: Matrix is close to singular or badly scaled.
         Results may be inaccurate. RCOND = 1.978514e-020. 
??? Error using ==> mtimes
Inner matrix dimensions must agree.
要怎么改?