Robochameleon
v1.0
Main Page
User Guides
Code groups
Classes
Files
File List
File Members
utils
dB2lin.m
Go to the documentation of this file.
1
2
function
lin =
dB2lin
(dB,varargin)
3
4
[type] = defaultargs({
'db'
},varargin);
5
6
switch
lower(type)
7
case 'db'
8
fact = 0;
9
case 'dbm'
10
fact = -30;
11
case 'dbu'
12
fact = -60;
13
otherwise
14
error('Conversion type can be ''dB'', ''dBm'', ''dBu''.')
15
end
16
17
lin = 10.^((dB+fact)/10);
dB2lin
function dB2lin(in dB, in varargin)
Convert dB to linear units.
Generated on Fri Dec 9 2016 18:23:36 for Robochameleon by
1.8.11