Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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
 

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?
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top