May 9, 2011 #1 J jenabi Newbie level 4 Joined Oct 1, 2010 Messages 6 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,334 hii i want to normalise the desired signal( to 1db) which is signal with awgn noise of 20db following is the code t = 1000; s = randn(1,t); M = 1000; %generate noise lamda = 0.1; K = 2; s = [ 0 0 0 0 0 0 0 0 s]; d = zeros(size(s)); i = 9:length(s); x(i) = 0.35*s(i) + s(i-1) +0.35*s(i-2); d(i) = x(i) +0.2*x(i-8)-0.7*d(i-1); d = awgn(d,20,'measured'); how do i normalize d's power to 1 db thanks
hii i want to normalise the desired signal( to 1db) which is signal with awgn noise of 20db following is the code t = 1000; s = randn(1,t); M = 1000; %generate noise lamda = 0.1; K = 2; s = [ 0 0 0 0 0 0 0 0 s]; d = zeros(size(s)); i = 9:length(s); x(i) = 0.35*s(i) + s(i-1) +0.35*s(i-2); d(i) = x(i) +0.2*x(i-8)-0.7*d(i-1); d = awgn(d,20,'measured'); how do i normalize d's power to 1 db thanks
May 9, 2011 #2 L lebesgue Member level 3 Joined Apr 9, 2011 Messages 55 Helped 6 Reputation 12 Reaction score 6 Trophy points 1,288 Location India Activity points 1,549 How about dividing by the maximum value of power?