From: Micik on
Hello to all,
is there any MATLAB function which can simulate white noise. I'm
reading one theory book in which there is example where signal
containes additive white noise. I 'm not sure how to model that in
Matlab.
Any advices?
From: NZTideMan on
On May 6, 7:38 am, Micik <brob...(a)yahoo.com> wrote:
> Hello to all,
> is there any MATLAB function which can simulate white noise. I'm
> reading one theory book in which there is example where signal
> containes additive white noise. I 'm not sure how to model that in
> Matlab.
> Any advices?

help randn
From: Greg Heath on
On May 5, 4:02 pm, NZTideMan <mul...(a)gmail.com> wrote:
> On May 6, 7:38 am, Micik <brob...(a)yahoo.com> wrote:
>
> > Hello to all,
> > is there any MATLAB function which can simulate white noise. I'm
> > reading one theory book in which there is example where signal
> > containes additive white noise. I 'm not sure how to model that in
> > Matlab.
> > Any advices?
>
> help randn

P0 = mean(s0.*s0);
s = s0 + sqrt(P0/SNR)*randn(N,1);
P = mean(s.*s);

P0 and P will approach theoretical values
as N --> inf.

Hope this helps.

Greg