blob: b518db13bcc8eb577138e0e936bf56e603e02d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
clc;
VS=10*10**-3;
a=0.98;
VBE=0.7;
VCC=10;
RC=10*10**3;
RL=5.1*10**3;
RE=20*10**3;
VEE=10;
IE=(VEE-VBE)/RE;
re=25/IE*10**-3;
Ri=re;
Ris=(RE*re)/(RE+re);
disp('ohm',Ris,"Ris=");
Ai=a;
disp(Ai);
rL=(RC*RL)/(RC+RL);
Av=rL/re;
disp(Av);
Ap=Av*Ai;
disp(Ap);
Gp=10*log10(Ap);
disp('dB',Gp,"Gp=");
Vin=VS;
Vo=Av*Vin;
disp('mV',Vo*10**3,"Vo=");
|