Code covered by the BSD License  

Highlights from
deb

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 1014 Bytes File ID: #36859
image thumbnail

deb

by

 

Functions that returns db

| Watch this File

File Information
Description

Pass a number as parameter and the function will calculate and return this number in db

Required Products Communications System Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
25 May 2012 Chad Greene

Nice simple function, and I should point out that it will work with the basic Matlab package. The Communications System Toolbox is not required, despite what is indicated above.

To make it clear for anyone who is new to the concept of decibels, the output decibels of this function are not the same as the acoustic decibels we tend to think of. This function works for power or intensity, but not for field amplitudes such as sound pressure level. Also, input should be a dimensionless number such as a fraction of (power)/(reference power).

If you want a function for decibels of sound pressure level, there's one on the file exchange site here: http://www.mathworks.com/matlabcentral/fileexchange/35876

Contact us