Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mag2db

Convert a magnitude to decibels (dB).

Syntax

  • db = mag2db(mag)

Input argument

  • mag - input array: scalar, vector or matrix.

Output argument

  • db - corresponding values in decibels

Description

db = mag2db(mag) returns corresponding values in decibels.

Example

DB = mag2db([1, 0.01])

See also

db2mag.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET