how to normalize the power of the desired signal

Status
Not open for further replies.

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
 

How about dividing by the maximum value of power?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…