summaryrefslogtreecommitdiff
path: root/1184/CH2/EX2.7.b/Ex2_7b.sce
blob: f5c5cd672d8b0c79583f7443f7805debe75b50cb (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 2-7 b, Page No.36

clear
clc

pin_mW = 50
pout_mW = 2

gain_dB= 10*log10(pout_mW/pin_mW)

printf('The gain/attenuation of the amplifier is %.2f',gain_dB)