Technical discussions related to Audio Signal Processing (digital effects, acoustics, noise reduction, musical signal processing, etc).
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
------------------------------------