mag2db

Convert magnitude to decibels (dB)

Syntax

ydb = mag2db(y)

Description

ydb = mag2db(y) returns the corresponding decibel (dB) value ydb for a given magnitude y. The relationship between magnitude and decibels is ydb = 20 log10(y).

See Also

Introduced in R2008a