Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Generate zero-mean complex Gaussian random variables

Status
Not open for further replies.

s.asad114

Junior Member level 1
Joined
Jun 17, 2010
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
hyd pak
Activity points
1,398
Im Working on Cooperative communication.i want Generate zero-mean complex Gaussian random variables with variances δ2sd and δ2sr.
im using following Code for this

chan_sd = 1/sqrt(2)*( randn(1, length(Txsig) ) + j*randn(1, length(Txsig) ) );
chan_sr = 1/sqrt(2)*( randn(1, length(Txsig) ) + j*randn(1, length(Txsig) ) );

Txsig is the modulated signal (symbols)
im geting -Ve Mean with it
can any one help me out in this ????
 

Re: How to Generate zero-mean complex Gaussian random variab

I think your commands are right, how did you know that the mean is -ve?
 

Re: How to Generate zero-mean complex Gaussian random variab

Ahmed Alaa said:
I think your commands are right, how did you know that the mean is -ve?

Simply by Using Mean command ,
mean(chan_sd)
e.g. -0.003 + i 0.0049

Added after 32 minutes:

i wan to implement following equation
Y_sr = P * H_sr * X + N_sr

subscript _sr shows signal From Source to Relay.

y = O/p Signal
P = Power
H = Channel Response
X = Modulated Symbol
N = Additive Noise
* shows Multiplication not convolution (Single Tap environment )

i'm having problem in producing H & N .In a book im referring Author says
about H_sr "is model as zero-mean, complex Gaussian random variables with variances δsqr s,r
i need to know what is Sigma here .
now For Additive noise
"The noise terms ns,r is modeled as zero-mean complex Gaussian
random variables with variance N0."
i need to know what is N0 here .

im using following Command
Channel Response
chan_sr = 1/sqrt(2)*( randn(1, length(Txsig) ) + j*randn(1, length(Txsig) ) );

additive Noise
N_sr = ( randn( 1,NumBits / BPS ) + 1j * randn( 1,NumBits / BPS ) ) / sqrt( 2 ) *10.^(-SNR/20);

BPS=Bits per symbol. im scaling it with SNR also

PLease Help me Out in Understanding these term so that i can Work
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top