summaryrefslogtreecommitdiff
path: root/2276/CH11/EX11.10/chapter11_ex10.sce
blob: 60a8639d3b7742f60c9f4b826e168cc740db3150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
clear

//input
rl=10;//load resistance in kiloohms
//for Ie= 0 ,0.8,2.0,2.8,4.0 Ic =0,0.78,1.95,2.73,3.9 respectively in mA
//taking any two set of values
ic1=3.9;
ic2=0;
ie1=4;
ie2=0;

//calculations
cg=(ic1-ic2)/(ie1-ie2);//current gain

//output
mprintf('the current gain is %3.3f',cg)