Question

Using MATLAB, generate a sequence of L=4000 independent Gaussian random variable with variance σ^2 = N0/2. MATLAB code to generate one Gaussian random variable with variance σ^2: \sqrt(σ^2)∗randn. Mak...

Using MATLAB, generate a sequence of L=4000 independent Gaussian random variable with variance σ^2 = N0/2.
MATLAB code to generate one Gaussian random variable with variance σ^2: \sqrt(σ^2)∗randn.
Make sure that N0 has to be set to a proper value, depending on the value Eb/N0 (dB) you’re
working on.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ebno=15; %Eb/No is 15 dB

eb=0.05; % bit energy is set as 50mW

L=4000;

n_var=10^(-ebno/10)*eb; % noise variance caluculated from %Eb/No.

grv1=sqrt(n_var)*randn(L,1); % generating a real Gaussian %random variable with required noise variance.

grv2=sqrt(n_var/2)*(randn(L,1)+sqrt(-1)*randn(L,1)); % %generating a complex gaussian random variable with %required noise variance.

Add a comment
Know the answer?
Add Answer to:
Using MATLAB, generate a sequence of L=4000 independent Gaussian random variable with variance σ^2 = N0/2. MATLAB code to generate one Gaussian random variable with variance σ^2: \sqrt(σ^2)∗randn. Mak...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT