summaryrefslogtreecommitdiff
path: root/3630/CH4/EX4.1/Ex4_1.sce
blob: 54cab93a7b9063fc817606367795e1eebcfe3e05 (plain)
1
2
3
4
5
6
7
clc;
Vin=12; //volt
RL=5100; //ohm
Rs=1000; //ohm
VL=(RL/(RL+Rs))*Vin ; //volt //voltage divide rule
disp('Vpk',VL,"VL=");//The answers vary due to round off error