Filtering White noise to produce desired Coloured Noise



Hello,

I am trying to produce a coloured noise from white noise in the discrete
time domain. I do it by producing an FIR filter of coefficients b,a from
the Noise Floor (V/sqrt(Hz)), which filters white noise produced by the
randn function.

Here is the code again:

%Filter coefficients of Noise floor of circuit
[b,a] = invfreqz(PSD_N.^0.5,(2*pi/fs)*(nn_f_scale),70,0,[],20,0.01);

%Generate White Noise
n_white = randn([1 B])'; % multiply of power 1
n_white = n_white - mean(n_white); % white noise must be DC free

%Generate Coloured Noise
n_out = filter(b,a,n_white); % filtering operation produces coloured
noise

Is this correct? Because, according to my simulation, i have a bias of
some 40dB between my analytical calculation and simulation.

Thanks for all answers! :-)

Dilpreet
.



Relevant Pages

  • Re: randomized white noise = white noise?
    ... To have a big memory with the noise you want pre-stored. ... minutes, or less, of loud pink or white noise! ... a few different "types" of noise: white, pink, arbitrarily filtered, ... Then filter that with a relatively simple RC filter with poles ...
    (sci.electronics.design)
  • Re: help with navtex/medium wave receiver sensitivity and decoding
    ... the system is too high to pick up anything but the strongest navtex ... above the background noise, and navtex signals are much lower power. ... Commercial stuff will filter, mix up to maybe a 60Mc IF to lose image ...
    (sci.electronics.design)
  • Re: Sampling a signal corrupted by AWGN
    ... anti-aliasing filter is fed into a matched filter matched to the ... noise will get oversampled so that power spectral density of noise will ... Secondly suppose we have signal-plus-noise ... make the upsampling unity gain as far as signal amplitude goes. ...
    (comp.dsp)
  • Re: Line Noise Interference Question
    ... X-10 module with the heavy transformer inside a linear power supply. ... They may filter their output to prevent noise from reaching the mains. ... >> The filters may also filter 120kHz thus draining the X-10 signals. ...
    (comp.home.automation)
  • Re: one more try at my input filter question
    ... That causes noise on the wire going back to the supply. ... noise easier to filter" - Hmmm. ... I can buy a 2A-rated inductor at about 33uH ... This may not help with your pcb. ...
    (sci.electronics.design)

Loading