Path: news.mathworks.com!not-for-mail
From: "Balachander Narasimhan" <balxxxxxchand@whatever.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: bug?
Date: Thu, 7 Feb 2008 20:04:01 +0000 (UTC)
Organization: University of Texas at Dallas
Lines: 30
Message-ID: <fofo7h$sk4$1@fred.mathworks.com>
References: <focsbh$9p6$1@fred.mathworks.com> <focvgs$qjo$1@fred.mathworks.com>
Reply-To: "Balachander Narasimhan" <balxxxxxchand@whatever.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202414641 29316 172.30.248.37 (7 Feb 2008 20:04:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Feb 2008 20:04:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1270072
Xref: news.mathworks.com comp.soft-sys.matlab:449970


Thanks for the reply. But setting the states of rand or
randn did not help.

regs
bala

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
wrote in message <focvgs$qjo$1@fred.mathworks.com>...
> "Balachander Narasimhan" <balxxxxxchand@whatever.com>
wrote in message 
> <focsbh$9p6$1@fred.mathworks.com>...
> > the rayleighchan command always gives the same tap weights
> > whenever invoked. Even if I restart matlab, it gives the
> > same tap values. isnt this a bug?
> ----------
>   As Walter has hinted, there is probably a random element
involved in 
> rayleighchan, which would imply that the pseudo-random
functions 'rand' or 
> 'randn' have been called upon.  If so, you would need to
reset their initial "seed" 
> or "state" settings to something that is truly random,
such as the time of day 
> when matlab was loaded, in order to achieve different
results.  See some of the 
> numerous cssm threads on this subject.
> 
> Roger Stafford
>