Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
what different between random noise and gaussian noise produced by MATLAB?

Subject: what different between random noise and gaussian noise produced by MATLAB?

From: billy ford

Date: 28 Oct, 2010 19:16:04

Message: 1 of 2

I am not sure if anyone knows what different between rand and awgn command. For example, are their spectrum flat?

thanks all,
Billy

Subject: what different between random noise and gaussian noise produced by MATLAB?

From: Wayne King

Date: 28 Oct, 2010 21:37:03

Message: 2 of 2

"billy ford" <firstsillybilly@yahoo.com> wrote in message <iaci5k$6lv$1@fred.mathworks.com>...
> I am not sure if anyone knows what different between rand and awgn command. For example, are their spectrum flat?
>
> thanks all,
> Billy

Hi Billy, I assume that you are talking about randn() and NOT rand(). If you are indeed talking about randn(), then both randn and awgn generate sequences of uncorrelated Gaussian random variables. The difference is that awgn() allows you to do much more than randn() without work on your part. For example, awgn() allows you adjust the variance of the noise so a specific SNR is achieved for a given signal. Of course you can do that with randn() as well, but it would be up to you to figure out precisely how to implement it. awgn() does it for you.

Wayne

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us