cxwangyi 12:36 pm on March 18, 2009 MATLAB code for Sampling Gaussian distribution function M = sample_gaussian(mu, Sigma, N)mu = mu(:);n=length(mu);[U,D,V] = svd(Sigma);M = randn(n,N);M = (U*sqrt(D))*M + mu*ones(1,N); M = M’; Like this:Like Loading... Related