% Student exercise 4

mags=vpa(logspace(-4,3,8),6)
vpa(mag2db(abs(mags)),3)