summaryrefslogtreecommitdiff
path: root/2681/CH5/EX5.8/Ex5_8.sce
blob: 11174cc58237f1c3e9e292f7e0d5227ed492ebfd (plain)
1
2
3
4
5
6
7
8
9
//voltage standing wave ratio
//given
clc
Vmax=5//volts
Vmin=3//volts
VSWR=Vmax/Vmin//voltage standing wave ratio
VSWR_S=20*log10(VSWR)//VSWR IN db
VSWR_S=round(VSWR_S*100)/100///rounding off decimals
disp(VSWR_S,'THE voltage standing wave ratio in db:')//decibles