Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: bug?

Subject: bug?

From: Balachander Narasimhan

Date: 06 Feb, 2008 17:56:01

Message: 1 of 6

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?

Subject: Re: bug?

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 06 Feb, 2008 18:09:54

Message: 2 of 6

In article <focsbh$9p6$1@fred.mathworks.com>,
Balachander Narasimhan <balxxxxxchand@whatever.com> wrote:
>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?

I see nothing in the documentation to indicate that it should
give different tap weights each time.

In the link 'Simulation of Multipath Fading Channels Methodology'
I do see that,

  1.A complex uncorrelated (white) Gaussian process with zero mean
  and unit variance is generated in discrete time.

But I don't see anything in there that indicates that it must or
should generate a different Gaussian process each time.
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block

Subject: Re: bug?

From: Roger Stafford

Date: 06 Feb, 2008 18:50:04

Message: 3 of 6

"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

Subject: Re: bug?

From: Balachander Narasimhan

Date: 07 Feb, 2008 20:03:03

Message: 4 of 6

Thanks for the reply. But rayleighchan function returns a
channel object. There would be circumstances in which one
needs multiple channel objects which behave independently.
Here, the function becomes useless.

regs
bala

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <foct5i$a0b$1@canopus.cc.umanitoba.ca>...
> In article <focsbh$9p6$1@fred.mathworks.com>,
> Balachander Narasimhan <balxxxxxchand@whatever.com> wrote:
> >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?
>
> I see nothing in the documentation to indicate that it should
> give different tap weights each time.
>
> In the link 'Simulation of Multipath Fading Channels
Methodology'
> I do see that,
>
> 1.A complex uncorrelated (white) Gaussian process with
zero mean
> and unit variance is generated in discrete time.
>
> But I don't see anything in there that indicates that it
must or
> should generate a different Gaussian process each time.
> --
> This is a Usenet signature block. Please do not quote it
when replying
> to one of my postings.
> http://en.wikipedia.org/wiki/Signature_block

Subject: Re: bug?

From: Balachander Narasimhan

Date: 07 Feb, 2008 20:04:01

Message: 5 of 6

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
>

Subject: Re: bug?

From: Jane schimit

Date: 05 Mar, 2008 08:44:02

Message: 6 of 6

You can use:
chan = rayleighchan(...,...);
seed = randseed(..,..);
reset(,seed);

to set rayleighchan's initial state.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
random seed Jane schimit 05 Mar, 2008 03:44:57
rayleighchan Jane schimit 05 Mar, 2008 03:44:57
rayleigh Ned Gulley 06 Feb, 2008 16:49:45
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics