summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.12/Ex2_12.sce
blob: 4f606e12b74eff0d7f56d8c032509eaa5b5e56de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;
//ex2.12
Vb=0.7; //volt
If=[0.001 0.005]; //Ampere
Rb=5; //ohm
Vf1=Vb+If(1,1)*Rb; //Volt//VF=VB+If*Rb;
Vf2=Vb+If(1,2)*Rb; //Volt//VF=VB+If*Rb;
disp('mV',Vf1,"Vf1=");
disp('mV',Vf2,"Vf2=");