Analytic complex gaussian noise.
NOISE=noisecg(N) NOISE=noisecg(N,A1) NOISE=noisecg(N,A1,A2)
a positive integer: the length of the noise signal.
a real scalar (see below).
a real scalar (see below).
a complex column vector of size N: the noise signal.
NOISE=noisecg(N,A1,A2) computes an analytic complex gaussian noise of length N with mean 0.0 and variance 1.0.
NOISE=noisecg(N) yields a complex white gaussian noise.
NOISE=noisecg(N,A1) yields a complex colored gaussian noise obtained by filtering a white gaussian noise through a sqrt(1-A1^2)/(1-A1*z^(-1)) first order filter.
NOISE=noisecg(N,A1,A2) yields a complex colored gaussian noise obtained by filtering a white gaussian noise through a sqrt(1-A1^2-A2^2)/(1-A1*z^(-1)-A2*z^(-2)) second order filter.
N=512; noise=noisecg(N); m=mean(noise),sigma2=sum((noise-m).^2) clf; subplot(211); plot(real(noise)); a=gca(); subplot(212); f=linspace(-0.5,0.5,N);plot(f',abs(fftshift(fft(noise))).^2); | ![]() | ![]() |