Convert magnitude to decibels (dB)
ydb = mag2db(y)
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).
db2mag