summaryrefslogtreecommitdiff
path: root/728/CH3/EX3.8/Ex3_8.txt
blob: 6027913444e2ebbbf33986d873af1083e8143d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//Caption:Determine:(a)VSWR; (b)Position of 1st Vmin & Vmax; (c)Vmin & Vmax; (d)Impedance at Vmin & Vmax.
//Exa: 3.8
clc;
clear;
close;
Z_o=50;//in ohms
Z_l=100;//in ohms
f=300*10^3;//in Hz
P_l=50*10^-3;//in watts
wl=(3*10^8)/f;
p=(Z_l-Z_o)/(Z_l+Z_o);
S=(1+abs(p))/(1-abs(p));
disp(S,"VSWR =");
//Since real Zl > Zo , 
pos=wl/4;
disp("First Vmax is located --->at the load ");
disp("First Vmin is located at --->(wavelength/4)= ");
disp(pos,"(in meters)");
V_max=(P_l*Z_l)^0.5;
V_min=V_max/S;
disp(V_max,"Vmax (in volts) =");
disp(V_min,"Vmin (in volts) =");
disp(Z_o/S,"Zin at Vmin (in ohms) =:");
disp(Z_o*S,"Zin at Vmax (in ohms) =");