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

clear
clc

Vin=3*10^-3
Vout=5

gain_dB= 20*log10 (Vout/Vin)

printf('The gain of amplifier in dB is %.1f',gain_dB)