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 convert dB into Magnitude and Angle

Status
Not open for further replies.

narayani

Full Member level 2
Joined
Aug 15, 2014
Messages
120
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,298
Activity points
2,262
Dear Sir,

I want to convert 18.65 dB into its Magnitude and Angle (Phase). Can you give formula to converting dB into its equivalent magnitude and angle (Phase).
 

Hi,

dB is a value of ratio.

For values like voltage, current the above formula is correct.

For value like power "Mag = 10^(dB/10)" is correct.

Klaus
 
then how to convert dB into Magnitude and phase. How to get phase values for dB.
 

I have following definition in Verilog-A code.

`define db20_real(x) (pow(10, (x)/20))
`define db10_real(x) (pow(10, (x)/10))

then how to convert dB into Magnitude and phase. How to get phase values for dB.
Again, You can never get phase infomation from dB.
 
The followings are MATLAB code for dbv()=db20() and dbp()=db10().
Code:
function y=dbv(x)
% dbv(x) = 20*log10(abs(x)); the dB equivalent of the voltage x
y = -Inf*ones(size(x));
if isempty(x)
    return
end
nonzero = x~=0;
y(nonzero) = 20*log10(abs(x(nonzero)));
Code:
function y=dbp(x)
% dbp(x) = 10*log10(x): the dB equivalent of the power x
y = -Inf*ones(size(x));
if isempty(x)
    return
end
nonzero = x~=0;
y(nonzero) = 10*log10(abs(x(nonzero)));

Again, You can never get phase infomation from dB value, even if you use MATLAB or ANY.

https://edadocs.software.keysight.com/display/ads2009/db()+Measurement
https://en.wikipedia.org/wiki/Decibel
 
Last edited:

Hi,
dB is a value of ratio.
For values like voltage, current the above formula is correct.
For value like power "Mag = 10^(dB/10)" is correct.

Not quite. The Bel is always a power ratio, by definition. A deciBel is 1/10 of a Bel, hence the "10" in the well-known formulae.

Since power is proportional to the square of the voltage, expressing voltage ratios in dB introduces an extra "2", hence the "20".
 

Hi,

Not quite.

The Bel is always a power ratio, by definition. A deciBel is 1/10 of a Bel, hence the "10" in the well-known formulae.

Since power is proportional to the square of the voltage, expressing voltage ratios in dB introduces an extra "2", hence the "20".

Isn´t that what i wrote? At least i wanted to..


Klaus
 

Hi,





Isn´t that what i wrote? At least i wanted to..


Klaus

The end result is the same, but your explanation implied there was a difference for power and voltage, whereas there is no difference.

Sorry that it is so difficult to follow what we are discussing; by design this website strips out the context, hence the large amount of vertical whitespace between "Hi" and "Isn't".
 

Hi,

The end result is the same, but your explanation implied there was a difference for power and voltage, whereas there is no difference.

Yes, there is a difference. And you explained it correctely already.

1) for voltage: dB(U) = 20 * log(U_out / U_in)

2) for power: dB(P) = 10 * log(P_out / P_in)

the mathematical calculation is like you explained:

dB.png

Klaus
 

Last edited:

Hi,

Consider original point of this thread.

Decibel definition should be db20() not db10() for this thread point.

I read the original post and can´t find this.

Is "magnitude" always considered to be voltage or current? Can´t it be power?


Klaus
 

Last edited:

Hi,

The OP says nothing about S parameters nor Agilent (Keysight) ADS.

Klaus
 

The OP says nothing about S parameters nor Agilent (Keysight) ADS.
Phase(Angle) is refered in this thread, so it is voltage not power.

Again, Decibel definition should be db20() not db10() for this thread point.
 
Last edited:

Hi,

Yes, here it is. The OP knows how to hide informations...

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top