1 2 3 4 5 6 7
clc; //ex3.17 Vin=20; //volt Vz=9.1; //volt Rs=2200; //ohm I=(Vin-Vz)/Rs; //Ampere disp('mA',I*1000,"I="); //The answers vary due to round off error