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.

need help in generating plot of SNR vs standard deviation

Status
Not open for further replies.

Shruti01

Member level 3
Joined
Apr 14, 2010
Messages
67
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Mumbai, India
Activity points
1,941
Hello,

My code for AM modulation is as follows:

Code:
t=0:0.001:1;
A=5;%Amplitude of signal
fm=input('Message frequency='); 
fc=input('Carrier frequency=');
mi=input('Modulation Index='); 
Sm=A*sin(2*pi*fm*t); % Message Signal
Sc=A*sin(2*pi*fc*t); % Carrier Signal
Sam=(A+mi*Sm).*sin(2*pi*fc*t); % AM Signal
y=awgn(Sam,10,'measured'); % Add white gaussian noise to AM signal

After this step, I want to plot a graph of SNR vs standard deviation. How to calculate SNR and standard deviation and plot them. Plz help.

Regards,
Shruti
 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top