How can I generate a gaussian noise with :
I want to simulate Wcdma, with different processing gain and multiusers:
known: SINR = P/(N0 + Interfernce)
p = 1 (signal_power, in my case)
Interference = (number_users - 1)/PG
with PG: processing gain
and I set
%loop%%%%%%%%%
SINR = 0:2:20
for N0 = 10.^(-SINR/10) - (number_users - 1)/PG; % as in the formula)
- after generating data, spreading, transmitting
I want te generate noise with variance = PG/(2*SINR);
I do like this
noise = (randn(1,N+ j*randn(1,N))*N0; %generate noise
received_data = desired_user + noise + interfernce_other_users
but it seems not working wel, And i think that the generation of noise
is not good
Am write
thanks
maca
Reply by Christian Epp●August 20, 20032003-08-20
Hi
Have al look at www.dspguide.com
A as far as I remember there is an algorithm for generating
gauss-distributed random numbers with a defined mean and deviation in the
mathematics chapter.
Perhaps that helps.
Christian
maca wrote:
> hallo
>
> How can I generate a gaussian noise with :
>
> variance = SF/(2*EbN0);
>
> SF : spreading factor
> EbN0 : Eb/N0
>
> Thanks a lot
> maca
Reply by Julius Kusuma●August 20, 20032003-08-20
On 20 Aug 2003, maca wrote:
> hallo
>
> How can I generate a gaussian noise with :
>
> variance = SF/(2*EbN0);
>
> SF : spreading factor
> EbN0 : Eb/N0
>
> Thanks a lot
> maca
depends on what you have available.
what do you have available?
--
The most rigorous proofs will be shown by vigorous handwaving.
http://www.mit.edu/~kusuma
opinion of author is not necessarily of the institute
Reply by maca●August 20, 20032003-08-20
hallo
How can I generate a gaussian noise with :
variance = SF/(2*EbN0);
SF : spreading factor
EbN0 : Eb/N0
Thanks a lot
maca