From: Dushyant Kumar on
Hi,

I am simulating normal random noise and since I am debugging my code, I want same random noise for various run. I could not figure out hot to use seeds for that purpose ...

Regards,
Dushyant
From: us on
"Dushyant Kumar" <duk(a)med.cornell.edu> wrote in message <hton5a$l7l$1(a)fred.mathworks.com>...
> Hi,
>
> I am simulating normal random noise and since I am debugging my code, I want same random noise for various run. I could not figure out hot to use seeds for that purpose ...
>
> Regards,
> Dushyant

a hint:

doc randstream;

us
From: Walter Roberson on
Dushyant Kumar wrote:

> I am simulating normal random noise and since I am debugging my code, I
> want same random noise for various run. I could not figure out hot to
> use seeds for that purpose ...

The randn() documentation points you to the RandStream documentation for
this matter. Did you examine the RandStream documentation? If so then do
you have questions about it?
From: Dushyant Kumar on
Walter Roberson <roberson(a)hushmail.com> wrote in message <QvRLn.22581$Gx2.14624(a)newsfe20.iad>...
> Dushyant Kumar wrote:
>
> > I am simulating normal random noise and since I am debugging my code, I
> > want same random noise for various run. I could not figure out hot to
> > use seeds for that purpose ...
>
> The randn() documentation points you to the RandStream documentation for
> this matter. Did you examine the RandStream documentation? If so then do
> you have questions about it?

I will take a look at that. Thanks..