summaryrefslogtreecommitdiff
path: root/3630/CH7/EX7.1/Ex7_1.sce
blob: 38e6b795dd89bc3d3af4316c0abe4e0f242eadc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;
Vcc=12; //volt
Vceoff=12; //volt
Rc=2000; //ohm
Icsat=Vceoff/Rc; //Ampere//v=r*i
disp('mA',Icsat*1000,"Icsat=");//The answers vary due to round off error
T1=0:2:12; // T1 axes is for voltage axes
T2=6:-1:0 // T2 axes is for Ic mA And T2(max)=Icsat=6 mA 
plot(T1,T2)
xlabel('Vce(V)')
ylabel('Ic(mA)')