ydb = mag2db(y) expresses
in decibels (dB) the magnitude measurements specified in y.
The relationship between magnitude and decibels is ydb = 20 log10(y).
Design a 3rd-order highpass Butterworth filter having a normalized 3-dB frequency of rad/sample. Compute its frequency response. Express the magnitude response in decibels and plot it.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.