Convert from db to Linear scale and vice versa.

  • Follow


Hello.
I have an array filled with  dBm values

(a short example is)
-110 dBm
-120dBm
-30dBm

I want to convert data to linear scale (watt) by using the following :
y = 0.001 * 10 .^ (x/10); (*)
which is of course easy. Then I want to do some calculation in linear scale and then return data back to dB scale.


(*) The problem is that with this function I get only 0.000  so when I try to do any calculations i mostly take wrong results. How can I increase matlab precision so to be sure that the results are correct?

Regards
Alex
0
Reply Alex 11/5/2010 3:39:04 PM

On 05/11/10 10:39 AM, Alex wrote:

> I have an array filled with dBm values
>
> (a short example is)
> -110 dBm
> -120dBm
> -30dBm
>
> I want to convert data to linear scale (watt) by using the following :
> y = 0.001 * 10 .^ (x/10); (*)
> which is of course easy. Then I want to do some calculation in linear
> scale and then return data back to dB scale.
>
>
> (*) The problem is that with this function I get only 0.000 so when I
> try to do any calculations i mostly take wrong results. How can I
> increase matlab precision so to be sure that the results are correct?

First thing to try:

format long g

0
Reply Walter 11/5/2010 3:41:35 PM


1 Replies
1138 Views

(page loaded in 0.023 seconds)

Similiar Articles:













7/24/2012 4:35:11 AM


Reply: