Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top