blob: 1fa3f59811b939ea22266f5a13a784486753f76f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
disp("Example 1.11")
printf("\n")
disp("findout resistance and cut in voltage")
printf("Given\n")
disp("forward current=100mA,Vr=25V,cut in voltage=0.7v,reverse current=100nA")
//all the values are from fig 1.10
Vf=0.35
If=80*10^-3 //forward current
Vr=40
Ir=10^-6 //reverse current
Rf=Vf/If
Rr=Vr/Ir
printf("static forward resistance=\n%f ohm\n",Rf)
printf("static reverse resistance=\n%f ohm\n",Rr)
//from the characteristic curve we can find cut in voltage
printf("cut in voltage= 0.3V")
|