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.

Randomly generated SNR Values (MATLAB)

Status
Not open for further replies.

prince_capri

Newbie level 5
Joined
Oct 31, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,366
Hey, I wish to randomly generate SNR values between 0 and 35 dB. Does anyone know which function can be used to generate these values in Matlab?

Thanks!
 

Thanks Mowgli, That helps a bit.

However, I don't quite know what variance I am supposed to use. I know that the mean I need is 0, but I have no clue about variance. Any further help would be appreciated!
 

Hi

You can use the following code

SNR=35*rand; % generate a random value for SNR between 0 and 35
rx=awgn(tx,SNR); %add AWGN with SNR

Salam
Hossam Alzomor
www(.)i-g(.)org
 
Cheers Alzomor, that helps.

The only thing I would add is, 35dB needs to be converted to Linear value ;)
 

Hi prince_capri,

I think awgn use dB scale not linear scale.
The problem is that the value of the SNR will be from 0 to 35 dB and there will not be any negative values for the SNR if you use "SNR=35*rand;"

Salam
Hossam Alzomor
www(.)i-g(.)org
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top