summaryrefslogtreecommitdiff
path: root/1223/CH1/EX1.11/Ex1_11.sce
blob: 9b1de53e682aed02ad807fc94af482d538730d2e (plain)
1
2
3
4
5
6
7
8
9
10
clear;
clc;
//Example 1.11 
V_Z=5.6;//(V)Zener diode breakdown voltage
r_z=0;//(Ohm)Zener resistance
I=3;//(mA)current in the diode
V_PS=10;//(V)
//I=(V_PS-V_Z)/R
R=(V_PS-V_Z)/I;
printf('\nresistance=%.3f KOhm\n',R)