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
Visit site
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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…