summaryrefslogtreecommitdiff
path: root/2498/CH2/EX2.26/ex2_26.sce
blob: 3f3115bbdf2a5df508d31a4f37b618d8b9950874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Exa 2.26
clc;
clear;
close;
format('v',6)
// Given data
R_L = 2;// in k ohm
R_L = R_L * 10^3;// in ohm
R = 2;// in k ohm
R = R * 10^3;// in ohm
Vin = 5;// in V
// The peak output voltage 
Vout = (R_L/(R+R_L))*Vin;// in V
disp(Vout,"The peak output voltage in V is");