blob: 8c92781e3c379d43421866521009ccc100854778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clc;
//e.g 18.1
Vcc=12;
Rc=2.2*10**3;
Rb=240;
B=50;
Vbe=0.7;
RE=0;
Ic=(Vcc-Vbe)/(RE+(Rb/B));//collector current
disp('mA',Ic,"Ic=");
Vce=Vcc-(Ic*10**-3)*Rc;//CE voltage
disp('V',Vce*1,"Vce=");
Icsat=Vcc/Rc;
disp('mA',Icsat*10**3,"Icsat=");
Vcec=Vcc;//cutoff voltage
i=5.45:-0.5:0;
plot(i);
a=gca() //get the current axes
a.box="off";
xlabel("VCE");
ylabel( "IC");
|