No BSD License  

Highlights from
Automatic Spectral Analysis

from Automatic Spectral Analysis by Stijn de Waele
Automatic spectral analysis for irregular sampling/missing data, analysis of spectral subband.

ch*z;
function x = randncov(cov)

%RANDNCOV A realization x of normally distributed vector X with
%	covariancematrix COV:
%  x = randncov(cov)
%
%	Uses randn
%
%	See also RANDN.

ch = Tsqrt(cov);
dim = size(ch,1);
z = randn(dim,1);

x = ch*z;

Contact us at files@mathworks.com