Sign in

username:

password:



Not a member?

Search audiodsp



Search tips

Subscribe to audiodsp



audiodsp by Keywords

AAC | ADPCM | Convolution | DAFx | FFT | IIR | Mixer | MP3 | MPEG | MPEG-4

Discussion Groups

Discussion Groups | Audio Signal Processing | Signal to noise ratio

Technical discussions related to Audio Signal Processing (digital effects, acoustics, noise reduction, musical signal processing, etc).

  

Post a new Thread

Signal to noise ratio - zahniang za - Jun 15 21:07:32 2008



hello, 
 
I just wanted to know how to find the signal to noise ratio of this sine wave. I have addaded
some noise to my signal and also shifted them. Here is my sample code. 
 
f=1000;
sampling_rate= 44100;
% Adding Random Noiser
randn('state', sum(100*clock));
t= 0:1/f:2;
n = 0:length(t)-1;
y1= cos(2*pi*f/sampling_rate*n)+0.1.*randn(size(n));
y2= cos(2*pi*f/sampling_rate*(n+5))+0.1.*randn(size(n));
y3= cos(2*pi*f/sampling_rate*(n+7))+0.1.*randn(size(n));
y4= cos(2*pi*f/sampling_rate*(n+9))+0.1.*randn(size(n));
y5= cos(2*pi*f/sampling_rate*(n+11))+0.1.*randn(size(n));
 
Can anybody help me how to get the signal to noise ratio of this? Or the way that I am trying
is not possible to get the SNR at all. I really need your help. Thank you in advance. 
 
Lamb

------------------------------------



(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )