www.gusucode.com > 用matlab仿真0到9十个数字的语音识别源码程序 > Speech-Recogenition/logdet.m

    function y = logdet(A)
% log(det(A)) where A is positive-definite.
% This is faster and more stable than using log(det(A)).

%  From Tom Minka's lightspeed toolbox

U = chol(A);
y = 2*sum(log(diag(U)));