blob: e7e33190cae133b0b35bf9bf232c68783cfa97ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Exa 11.2
clc;
clear;
close;
//given data
I_L= 0.5;// in amp
R_L=25;// in ohm
V_R=12;// in volt (since using 7812 voltage regulator)
V_L= I_L*R_L;
R=V_R/I_L;// in ohm
disp(R,"Resistance required in ohm");
V_out= V_R+V_L;// in volt
disp(V_out,"Output voltage in volt");
V_in= V_out+2;// in volt
disp(V_in,"Input voltage in volt");
|