DSPRelated.com
Forums

normal random noise with zero mean, variance not equal to 1

Started by mao mu April 2, 2004
Hi folks,
How do I generate a random noise with zero mean, variance not equal to 1.
randn() is for zero mean, variance=1 case. Thanks,
Mu




Hi Mu,

Try:

noise = mean + variance*randn();

Regards,
Jeff

=======================
Jeff Winter
Snr Design Engineer
Aeroflex
www.aeroflex.com -----Original Message-----
From: mao mu [mailto:]
Sent: Friday, April 02, 2004 9:20 PM
To:
Subject: [matlab] normal random noise with zero mean, variance not equal
to 1 Hi folks,
How do I generate a random noise with zero mean, variance not equal to 1.
randn() is for zero mean, variance=1 case. Thanks,
Mu _____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links


 
I think it would be:
 
noise = mean + sqrt(variance) * randn();

Regards,
Jorge
===================
Jorge Vega
Santa Fe
ARGENTINA
===================
----- Original Message -----
From: Jeff Winter
To: mao mu
Cc: m...@yahoogroups.com
Sent: Monday, April 05, 2004 10:19 AM
Subject: RE: [matlab] normal random noise with zero mean, variance not equal to 1

Hi Mu,

Try:

noise = mean + variance*randn();

Regards,
Jeff

=======================
Jeff Winter
Snr Design Engineer
Aeroflex
www.aeroflex.com-----Original Message-----
From: mao mu [mailto:m...@yahoo.com]
Sent: Friday, April 02, 2004 9:20 PM
To:
Subject: [matlab] normal random noise with zero mean, variance not equal
to 1Hi folks,
How do I generate a random noise with zero mean, variance not equal to 1.
randn() is for zero mean, variance=1 case. Thanks,
Mu_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer.  You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links 



Jorge,
You think correct.  My mistake.
 
Jeff
-----Original Message-----
From: Jorge Vega [mailto:j...@ceride.gov.ar]
Sent: Monday, April 05, 2004 4:13 PM
To: j...@aeroflex.com; mao mu
Cc: m...@yahoogroups.com
Subject: RE: [matlab] normal random noise with zero mean, variance not equal to 1

 
I think it would be:
 
noise = mean + sqrt(variance) * randn();

Regards,
Jorge
===================
Jorge Vega
Santa Fe
ARGENTINA
===================
----- Original Message -----
From: Jeff Winter
To: mao mu
Cc: m...@yahoogroups.com
Sent: Monday, April 05, 2004 10:19 AM
Subject: RE: [matlab] normal random noise with zero mean, variance not equal to 1

Hi Mu,

Try:

noise = mean + variance*randn();

Regards,
Jeff

=======================
Jeff Winter
Snr Design Engineer
Aeroflex
www.aeroflex.com-----Original Message-----
From: mao mu [mailto:m...@yahoo.com]
Sent: Friday, April 02, 2004 9:20 PM
To:
Subject: [matlab] normal random noise with zero mean, variance not equal
to 1Hi folks,
How do I generate a random noise with zero mean, variance not equal to 1.
randn() is for zero mean, variance=1 case. Thanks,
Mu_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer.  You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links 


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3

Hi!
You can use the function "normrnd" to generate random numbers
from a distribution with specified mean and
variance!
cheers,
Pradeep.
DATE: Mon, 5 Apr 2004 17:31:06
From: "Jeff Winter" <j...@aeroflex.com>
To: "Jorge Vega" <j...@ceride.gov.ar>, "mao mu" <m...@yahoo.com>
Cc: <m...@yahoogroups.com>

Jorge,
You think correct.  My mistake.
 
Jeff
-----Original Message-----
From: Jorge Vega [mailto:j...@ceride.gov.ar]
Sent: Monday, April 05, 2004 4:13 PM
To: j...@aeroflex.com; mao mu
Cc: m...@yahoogroups.com
Subject: RE: [matlab] normal random noise with zero mean, variance not equal to 1

 
I think it would be:
 
noise = mean + sqrt(variance) * randn();

Regards,
Jorge
===================
Jorge Vega
Santa Fe
ARGENTINA
===================
----- Original Message -----
From: Jeff Winter
To: mao mu
Cc: m...@yahoogroups.com
Sent: Monday, April 05, 2004 10:19 AM
Subject: RE: [matlab] normal random noise with zero mean, variance not equal to 1

Hi Mu,

Try:

noise = mean + variance*randn();

Regards,
Jeff

=======================
Jeff Winter
Snr Design Engineer
Aeroflex
www.aeroflex.com-----Original Message-----
From: mao mu [mailto:m...@yahoo.com]
Sent: Friday, April 02, 2004 9:20 PM
To:
Subject: [matlab] normal random noise with zero mean, variance not equal
to 1Hi folks,
How do I generate a random noise with zero mean, variance not equal to 1.
randn() is for zero mean, variance=1 case. Thanks,
Mu_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer.  You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
Yahoo! Groups Links 


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. nbsp; You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3




____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages.