summaryrefslogtreecommitdiff
path: root/2681/CH5/EX5.10/Ex5_10.sce
blob: 1204f24dff97094cee936bbfd414f292f8076edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//voltage standing wave ratio
//given
clc
clear 
format
Vr=0.37//volts
Vi=1//volts
row=Vr/Vi
if(row>=0)
VSWR=(1+row)/(1-row)
VSWR=round(VSWR*10)/10///rounding off decimals
disp(VSWR,'THE voltage standing wave ratio is:')
else
disp('not possible')
end