| Contents | Index |
dboutput = db(X)
dboutput = db(X,SignalType)
dboutput = db(X,R)
dboutput = db(X,'voltage',R)
dboutput = db(X) converts the elements of the vector or matrix X to decibels (dB). The elements of X are voltage measurements across a resistance of 1 ohm.
dboutput = db(X,SignalType) specifies the signal type represented by the elements of X as 'voltage' or 'power'. The entries are not case sensitive. The default value is 'voltage'. For voltage measurements, the resistance defaults to 1 ohm. If you specify SignalType as 'power', the elements of X must be nonnegative.
dboutput = db(X,R) specifies the resistance R for voltage measurements. You can specify a resistance only when the signal measurements are voltages.
dboutput = db(X,'voltage',R) specifies the resistance R for voltage measurements. This syntax is equivalent to db(X,R).
Convert voltage to decibels. Assume that the resistance is 2 ohms.
V = 1;
R = 2;
dboutput = db(V,2)
% equivalent to 10*log10(1/2)Convert a vector of power measurements to decibels.
rng default X = abs(randn(10,1)); dboutput = db(X,'power')
mag2db — Converts magnitude measurements to decibels.
pow2db — Converts power measurements to decibels.
db2mag | db2pow | mag2db | pow2db

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |