View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

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




Functions that returns db

| Watch this File

File Information

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

Chad Greene (view profile)

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:

Comment only

Contact us