1 2 3 4 5 6
clc; Vout=2; //volt Vin=0.025; //volt AvdB=20*log10(Vout/Vin); disp('dB',AvdB,"AvdB=");//The answers vary due to round off error