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 power spectral density

Status
Not open for further replies.

Preben

Member level 1
Joined
Jul 16, 2006
Messages
40
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,486
hi
I want to compare distortions of two signals. I calculated the power spectral density of these signals.
anyone can tell me how to calculate the normalized power spectral density, so I compare these two spectral? it is better if you can write matlab code.

Thanks in advance
 

zorx

Member level 2
Joined
Feb 15, 2010
Messages
45
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,288
Location
Spain
Activity points
1,635
Lets say that P1 is PSD of signal #1, and P2 is PSD of signal #2. The arrays have the same length.
I guess in Matlab it would be:

P1_max = max(P1); %find the max value of P1
P2_max = max(P2); %find the max value of P2
P1_norm = P1/P1_max; % P1 normalized within [0, 1] range
P2_norm = P2/P2_max; % P2 normalized within [0, 1] range

and now you need to plot those two normalized PSD:

figure;
plot(f, P1_norm); %plot normalized PSD for signal #1
hold on; %hold the current figure so it can be used once again to plot another PSD
plot(f, P2_norm); %plot normalized PSD for signal #2 on the same figure

cheers
 
Last edited:

bababui

Junior Member level 3
Joined
Apr 12, 2009
Messages
26
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
USA
Activity points
1,474
One thing that you can look at is coherence between these signals. mscohere command in MATLAB. Just a thought, not sure if that's what you're looking for.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top